Update immediate and transitive dependencies
I don't think this has happened in awhile but I've run a `cargo update` as well as trimming some of the duplicate/older dependencies in `Cargo.lock` by updating some of our immediate dependencies as well.
This commit is contained in:
6
crates/cache/Cargo.toml
vendored
6
crates/cache/Cargo.toml
vendored
@@ -10,13 +10,13 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
base64 = "0.12.0"
|
||||
base64 = "0.13.0"
|
||||
bincode = "1.1.4"
|
||||
directories-next = "1.0"
|
||||
directories-next = "2.0"
|
||||
file-per-thread-logger = "0.1.1"
|
||||
log = { version = "0.4.8", default-features = false }
|
||||
serde = { version = "1.0.94", features = ["derive"] }
|
||||
sha2 = "0.8.0"
|
||||
sha2 = "0.9.0"
|
||||
toml = "0.5.5"
|
||||
zstd = "0.5"
|
||||
|
||||
|
||||
4
crates/cache/src/lib.rs
vendored
4
crates/cache/src/lib.rs
vendored
@@ -50,7 +50,7 @@ impl<'config> ModuleCacheEntry<'config> {
|
||||
{
|
||||
let mut hasher = Sha256Hasher(Sha256::new());
|
||||
state.hash(&mut hasher);
|
||||
let hash: [u8; 32] = hasher.0.result().into();
|
||||
let hash: [u8; 32] = hasher.0.finalize().into();
|
||||
// standard encoding uses '/' which can't be used for filename
|
||||
let hash = base64::encode_config(&hash, base64::URL_SAFE_NO_PAD);
|
||||
|
||||
@@ -181,7 +181,7 @@ impl Hasher for Sha256Hasher {
|
||||
}
|
||||
|
||||
fn write(&mut self, bytes: &[u8]) {
|
||||
self.0.input(bytes);
|
||||
self.0.update(bytes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user