From e48e94dbb0aee09f1c70c9a58f4df226fb28fd10 Mon Sep 17 00:00:00 2001 From: arvidn Date: Tue, 31 Oct 2023 23:44:18 +0100 Subject: [PATCH] relax specific versions of dependencies. this allows deduplication of the sha2 crate. Only the top level crate should lock down versions of dependencies, with the lockfile --- Cargo.lock | 17 ++++++++--------- Cargo.toml | 19 +++++++++---------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 574a1d74..81e2332c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -323,7 +323,6 @@ version = "0.3.0" dependencies = [ "chia-bls", "criterion", - "getrandom", "hex", "k256", "lazy_static", @@ -333,7 +332,7 @@ dependencies = [ "openssl", "p256", "rstest", - "sha2 0.9.9", + "sha2 0.10.8", ] [[package]] @@ -1026,11 +1025,11 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl" -version = "0.10.57" +version = "0.10.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bac25ee399abb46215765b1cb35bc0212377e58a061560d8b29b024fd0430e7c" +checksum = "345df152bc43501c5eb9e4654ff05f794effb78d4efe3d53abc158baddc0703d" dependencies = [ - "bitflags 2.4.1", + "bitflags 1.3.2", "cfg-if", "foreign-types", "libc", @@ -1052,18 +1051,18 @@ dependencies = [ [[package]] name = "openssl-src" -version = "300.1.6+3.1.4" +version = "111.28.0+1.1.1w" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439fac53e092cd7442a3660c85dde4643ab3b5bd39040912388dcdabf6b88085" +checksum = "3ce95ee1f6f999dfb95b8afd43ebe442758ea2104d1ccb99a94c30db22ae701f" dependencies = [ "cc", ] [[package]] name = "openssl-sys" -version = "0.9.93" +version = "0.9.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db4d56a4c0478783083cfafcc42493dd4a981d41669da64b4572a2a089b51b1d" +checksum = "866b5f16f90776b9bb8dc1e1802ac6f0513de3a7a7465867bfbc563dc737faac" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index 041c482c..43577e81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,22 +29,21 @@ pre-eval = [] lto = true [dependencies] -hex = "=0.4.3" -lazy_static = "=1.4.0" -num-bigint = "=0.4.3" -num-traits = "=0.2.15" -num-integer = "=0.1.45" -chia-bls = ">=0.2.13" -sha2 = "=0.9.9" +hex = "0.4.3" +lazy_static = "1.4.0" +num-bigint = "0.4.3" +num-traits = "0.2.15" +num-integer = "0.1.45" +chia-bls = "0.2.13" +sha2 = "0.10.8" openssl = { version = "=0.10.55", features = ["vendored"], optional = true } -getrandom = { version = "=0.2.9", features = ["js" ]} # for secp sigs k256 = { version = "0.13.1", features = ["ecdsa"] } p256 = { version = "0.13.2", features = ["ecdsa"] } [dev-dependencies] -rstest = "=0.17.0" -criterion = "=0.5.1" +rstest = "0.17.0" +criterion = "0.5.1" [[bench]] name = "run-program"