From 95115d9aa9f059a4e751cc892cd329f899bec02d 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 | 3 +-- Cargo.toml | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 574a1d74..aa2d070b 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]] diff --git a/Cargo.toml b/Cargo.toml index b1ac1b80..12c0596b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,22 +29,22 @@ 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" -openssl = { version = ">=0.10.55", features = ["vendored"], optional = true } -getrandom = { version = "=0.2.9", features = ["js" ]} +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"