From 5df205b4c14bdb4cda803d3ad9ab4fd4a05e1077 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 | 9 ++++----- Cargo.toml | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 574a1d74..2ed2cc65 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", diff --git a/Cargo.toml b/Cargo.toml index 041c482c..72f942cc 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" +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" ]} +#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"