Bump dependencies (#198)

This commit is contained in:
Paolo Barbolini 2023-07-29 21:37:22 +02:00 committed by GitHub
parent 89e615b1e6
commit 6301ac943a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1502 additions and 401 deletions

1889
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -15,20 +15,20 @@ badge = { path = "./libs/badge" }
anyhow = "1" anyhow = "1"
cadence = "0.29" cadence = "0.29"
crates-index = "0.19" crates-index = { version = "2", default-features = false, features = ["git-https"] }
derive_more = "0.99" derive_more = "0.99"
font-awesome-as-a-crate = "0.3" font-awesome-as-a-crate = "0.3"
futures-util = { version = "0.3", default-features = false, features = ["std"] } futures-util = { version = "0.3", default-features = false, features = ["std"] }
hyper = { version = "0.14.10", features = ["full"] } hyper = { version = "0.14.10", features = ["full"] }
indexmap = { version = "1", features = ["serde-1"] } indexmap = { version = "2", features = ["serde"] }
lru_time_cache = "0.11.1" lru_time_cache = "0.11.1"
maud = "0.24" maud = "0.25"
once_cell = "1" once_cell = "1"
pulldown-cmark = "0.9" pulldown-cmark = "0.9"
relative-path = { version = "1.3", features = ["serde"] } relative-path = { version = "1.3", features = ["serde"] }
reqwest = { version = "0.11", features = ["json"] } reqwest = { version = "0.11", features = ["json"] }
route-recognizer = "0.3" route-recognizer = "0.3"
rustsec = "0.26" rustsec = "0.27"
semver = { version = "1.0", features = ["serde"] } semver = { version = "1.0", features = ["serde"] }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = "1"

View file

@ -5,21 +5,21 @@ use std::time::Duration;
use crate::models::crates::CrateName; use crate::models::crates::CrateName;
use anyhow::Result; use anyhow::Result;
use crates_index::Crate; use crates_index::Crate;
use crates_index::Index; use crates_index::GitIndex;
use slog::{error, Logger}; use slog::{error, Logger};
use tokio::task::spawn_blocking; use tokio::task::spawn_blocking;
use tokio::time::{self, MissedTickBehavior}; use tokio::time::{self, MissedTickBehavior};
#[derive(Clone)] #[derive(Clone)]
pub struct ManagedIndex { pub struct ManagedIndex {
index: Arc<Mutex<Index>>, index: Arc<Mutex<GitIndex>>,
logger: Logger, logger: Logger,
} }
impl ManagedIndex { impl ManagedIndex {
pub fn new(logger: Logger) -> Self { pub fn new(logger: Logger) -> Self {
// the index path is configurable through the `CARGO_HOME` env variable // 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 } Self { index, logger }
} }