From 82b2b3e625853e8d6b297733188d0024a33e1284 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 26 Jan 2022 15:23:22 +1000 Subject: [PATCH] fix (zebra-chain): make test and bench targets build using 2021 edition (#3404) The 2021 edition activates the v2 cargo resolver. This broke implicit feature resolution, but only when `zebra-chain`'s dev or bench targets were compiled by themselves. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- zebra-chain/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra-chain/Cargo.toml b/zebra-chain/Cargo.toml index 7c7b372a..0bf3bf13 100644 --- a/zebra-chain/Cargo.toml +++ b/zebra-chain/Cargo.toml @@ -81,11 +81,14 @@ proptest-derive = "0.3" rand = "0.8" rand_chacha = "0.3" +tokio = "1.15.0" + zebra-test = { path = "../zebra-test/" } [[bench]] name = "block" harness = false +required-features = ["bench"] [[bench]] name = "redpallas"