From 06f0640f5300ae52b296a6a845c28d6579fd18ec Mon Sep 17 00:00:00 2001 From: Agost Biro Date: Thu, 24 Nov 2022 17:24:30 +0100 Subject: [PATCH 1/2] chore: switch `binstall-zip` to `zip` The original `zip` crate cut a new release and the `binstall-zip` fork is now deprecated. --- Cargo.lock | 42 +++++++++++++++++++++--------------------- Cargo.toml | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cb75bc7..8540a0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,26 +55,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" -[[package]] -name = "binstall-zip" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5eddcdebe8fe727d81b47734b3302ffa49a6fe50376fe6c52c609198c0709e5" -dependencies = [ - "aes", - "byteorder", - "bzip2", - "constant_time_eq", - "crc32fast", - "crossbeam-utils", - "flate2", - "hmac", - "pbkdf2", - "sha1", - "time", - "zstd", -] - [[package]] name = "bitflags" version = "1.3.2" @@ -1355,7 +1335,6 @@ name = "svm-rs" version = "0.2.18" dependencies = [ "anyhow", - "binstall-zip", "cfg-if", "clap", "console 0.14.1", @@ -1377,6 +1356,7 @@ dependencies = [ "tokio", "tracing", "url", + "zip", ] [[package]] @@ -1832,6 +1812,26 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d68d9dcec5f9b43a30d38c49f91dfedfaac384cb8f085faca366c26207dd1619" +[[package]] +name = "zip" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "537ce7411d25e54e8ae21a7ce0b15840e7bfcff15b51d697ec3266cc76bdf080" +dependencies = [ + "aes", + "byteorder", + "bzip2", + "constant_time_eq", + "crc32fast", + "crossbeam-utils", + "flate2", + "hmac", + "pbkdf2", + "sha1", + "time", + "zstd", +] + [[package]] name = "zstd" version = "0.11.2+zstd.1.5.2" diff --git a/Cargo.toml b/Cargo.toml index a9380e2..f58e27b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ tracing = "0.1.30" url = { version = "2.2.2", default-features = false } [target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies] -zip = { package = "binstall-zip", version = "0.6.3" } +zip = "0.6.3" [build-dependencies] home = { version = "0.5.3", default-features = false } From 1de8469714aad788b8ff569d5452b5521993c962 Mon Sep 17 00:00:00 2001 From: Agost Biro Date: Thu, 24 Nov 2022 17:53:44 +0100 Subject: [PATCH 2/2] chore: fix lint error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 16b323d..1233e9e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -123,7 +123,7 @@ pub fn patch_for_nixos(bin: PathBuf) -> Result { /// Derive path to a specific Solc version's binary. pub fn version_path(version: &str) -> PathBuf { let mut version_path = SVM_HOME.to_path_buf(); - version_path.push(&version); + version_path.push(version); version_path }