mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-21 18:06:30 +00:00
Bump dependencies (#198)
This commit is contained in:
parent
89e615b1e6
commit
6301ac943a
3 changed files with 1502 additions and 401 deletions
1889
Cargo.lock
generated
1889
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -15,20 +15,20 @@ badge = { path = "./libs/badge" }
|
|||
|
||||
anyhow = "1"
|
||||
cadence = "0.29"
|
||||
crates-index = "0.19"
|
||||
crates-index = { version = "2", default-features = false, features = ["git-https"] }
|
||||
derive_more = "0.99"
|
||||
font-awesome-as-a-crate = "0.3"
|
||||
futures-util = { version = "0.3", default-features = false, features = ["std"] }
|
||||
hyper = { version = "0.14.10", features = ["full"] }
|
||||
indexmap = { version = "1", features = ["serde-1"] }
|
||||
indexmap = { version = "2", features = ["serde"] }
|
||||
lru_time_cache = "0.11.1"
|
||||
maud = "0.24"
|
||||
maud = "0.25"
|
||||
once_cell = "1"
|
||||
pulldown-cmark = "0.9"
|
||||
relative-path = { version = "1.3", features = ["serde"] }
|
||||
reqwest = { version = "0.11", features = ["json"] }
|
||||
route-recognizer = "0.3"
|
||||
rustsec = "0.26"
|
||||
rustsec = "0.27"
|
||||
semver = { version = "1.0", features = ["serde"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
|
|
@ -5,21 +5,21 @@ use std::time::Duration;
|
|||
use crate::models::crates::CrateName;
|
||||
use anyhow::Result;
|
||||
use crates_index::Crate;
|
||||
use crates_index::Index;
|
||||
use crates_index::GitIndex;
|
||||
use slog::{error, Logger};
|
||||
use tokio::task::spawn_blocking;
|
||||
use tokio::time::{self, MissedTickBehavior};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct ManagedIndex {
|
||||
index: Arc<Mutex<Index>>,
|
||||
index: Arc<Mutex<GitIndex>>,
|
||||
logger: Logger,
|
||||
}
|
||||
|
||||
impl ManagedIndex {
|
||||
pub fn new(logger: Logger) -> Self {
|
||||
// the index path is configurable through the `CARGO_HOME` env variable
|
||||
let index = Arc::new(Mutex::new(Index::new_cargo_default().unwrap()));
|
||||
let index = Arc::new(Mutex::new(GitIndex::new_cargo_default().unwrap()));
|
||||
Self { index, logger }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue