From 5a2c968720141b115ec2055ea13ae6d025175e95 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 21 Jun 2024 13:17:50 +0200 Subject: [PATCH] chore(deps): Replace `sha-1` with `sha1` (#9091) They renamed the crate: https://github.com/RustCrypto/hashes?tab=readme-ov-file#crate-names --- Cargo.lock | 15 ++------------- Cargo.toml | 2 +- crates/swc_bundler/Cargo.toml | 2 +- crates/swc_ecma_transforms_react/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 69b96123a7ac..ef94e9339862 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3422,17 +3422,6 @@ dependencies = [ "unsafe-libyaml", ] -[[package]] -name = "sha-1" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - [[package]] name = "sha1" version = "0.10.6" @@ -3794,7 +3783,7 @@ dependencies = [ "rayon", "relative-path", "reqwest", - "sha-1", + "sha1", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -4812,7 +4801,7 @@ dependencies = [ "once_cell", "rayon", "serde", - "sha-1", + "sha1", "string_enum", "swc_atoms", "swc_common", diff --git a/Cargo.toml b/Cargo.toml index fd651d05d137..d352f3bbb0dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -104,7 +104,7 @@ resolver = "2" serde-wasm-bindgen = "0.4.5" serde_derive = "1.0.197" serde_json = "1.0.115" - sha1 = "0.10.5" + sha1 = "0.10.6" sha2 = "0.10.8" siphasher = "0.3.9" smallvec = "1.8.0" diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 193292a8e09f..53407d36cbf0 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -55,7 +55,7 @@ hex = { workspace = true } ntest = { workspace = true } path-clean = "=0.1.0" reqwest = { workspace = true, features = ["blocking"] } -sha-1 = "0.10" +sha1 = { workspace = true } tempfile = { workspace = true } url = { workspace = true } diff --git a/crates/swc_ecma_transforms_react/Cargo.toml b/crates/swc_ecma_transforms_react/Cargo.toml index 108c2c719702..92efff1352d6 100644 --- a/crates/swc_ecma_transforms_react/Cargo.toml +++ b/crates/swc_ecma_transforms_react/Cargo.toml @@ -24,7 +24,7 @@ indexmap = { workspace = true } once_cell = { workspace = true } rayon = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"], optional = true } -sha-1 = "=0.10.0" +sha1 = { workspace = true } string_enum = { version = "0.4.4", path = "../string_enum" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" }