From 08838054e325bbf4e82b3303899c7922e3da511e Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 7 Apr 2021 13:02:40 +1000 Subject: [PATCH] Update tower-batch tests to rand 0.8 And move the ed25519-zebra patch to the workspace Cargo.toml. This fix helps avoid Cargo.lock instability. --- Cargo.lock | 26 +++++++++++++++++++++++--- Cargo.toml | 2 ++ tower-batch/Cargo.toml | 4 ++-- zebra-chain/Cargo.toml | 3 +-- 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 775d99d639b..05741c0cae7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -917,6 +917,7 @@ dependencies = [ [[package]] name = "ed25519-zebra" version = "2.2.0" +<<<<<<< Updated upstream source = "git+https://github.com/ZcashFoundation/ed25519-zebra?rev=539fad040c443302775b0f508e616418825e6c22#539fad040c443302775b0f508e616418825e6c22" dependencies = [ "curve25519-dalek", @@ -933,6 +934,25 @@ name = "ed25519-zebra" version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a128b76af6dd4b427e34a6fd43dc78dbfe73672ec41ff615a2414c1a0ad0409" +||||||| constructed merge base +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a128b76af6dd4b427e34a6fd43dc78dbfe73672ec41ff615a2414c1a0ad0409" +dependencies = [ + "curve25519-dalek", + "hex", + "rand_core 0.5.1", + "serde", + "sha2", + "thiserror", +] + +[[package]] +name = "ed25519-zebra" +version = "2.2.0" +source = "git+https://github.com/ZcashFoundation/ed25519-zebra?rev=539fad040c443302775b0f508e616418825e6c22#539fad040c443302775b0f508e616418825e6c22" +======= +source = "git+https://github.com/ZcashFoundation/ed25519-zebra?rev=539fad040c443302775b0f508e616418825e6c22#539fad040c443302775b0f508e616418825e6c22" +>>>>>>> Stashed changes dependencies = [ "curve25519-dalek", "hex", @@ -3399,11 +3419,11 @@ name = "tower-batch" version = "0.2.3" dependencies = [ "color-eyre", - "ed25519-zebra 2.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "ed25519-zebra", "futures 0.3.13", "futures-core", "pin-project 0.4.27", - "rand 0.7.3", + "rand 0.8.1", "tokio 0.3.6", "tokio-test", "tower", @@ -4056,7 +4076,7 @@ dependencies = [ "chrono", "color-eyre", "displaydoc", - "ed25519-zebra 2.2.0 (git+https://github.com/ZcashFoundation/ed25519-zebra?rev=539fad040c443302775b0f508e616418825e6c22)", + "ed25519-zebra", "equihash", "futures 0.3.13", "hex", diff --git a/Cargo.toml b/Cargo.toml index 94e54c2e12f..edd2a65ee8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,8 @@ panic = "abort" [patch.crates-io] +# TODO: upgrade ed25510-zebra to 3 when released: https://github.com/ZcashFoundation/ed25519-zebra/issues/45 +ed25519-zebra = {git = "https://github.com/ZcashFoundation/ed25519-zebra", rev = "539fad040c443302775b0f508e616418825e6c22"} # awaiting stable versions which all depend on tokio 1.0, see #1086 for details hyper = { git = "https://github.com/hyperium/hyper", rev = "ed2b22a7f66899d338691552fbcb6c0f2f4e06b9" } diff --git a/tower-batch/Cargo.toml b/tower-batch/Cargo.toml index 06b3354d4d6..c91e1bd8c1a 100644 --- a/tower-batch/Cargo.toml +++ b/tower-batch/Cargo.toml @@ -16,8 +16,8 @@ tracing-futures = "0.2.5" [dev-dependencies] color-eyre = "0.5.10" -ed25519-zebra = "2.1.0" -rand = "0.7" +ed25519-zebra = "2.2.0" +rand = "0.8" tokio = { version = "0.3.6", features = ["full"]} tokio-test = "0.4.1" tower-fallback = { path = "../tower-fallback/" } diff --git a/zebra-chain/Cargo.toml b/zebra-chain/Cargo.toml index 9fe6242721f..587ca4972a8 100644 --- a/zebra-chain/Cargo.toml +++ b/zebra-chain/Cargo.toml @@ -41,8 +41,7 @@ proptest = { version = "0.10", optional = true } proptest-derive = { version = "0.3.0", optional = true } # ZF deps -# TODO: upgrade ed25510-zebra to 3 when released: https://github.com/ZcashFoundation/ed25519-zebra/issues/45 -ed25519-zebra = {git = "https://github.com/ZcashFoundation/ed25519-zebra", rev = "539fad040c443302775b0f508e616418825e6c22"} +ed25519-zebra = "2.2.0" redjubjub = "0.4" [dev-dependencies]