From 6f5d81631ab9eb4967eebe4d2a8912903d40b541 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 28 Apr 2021 16:23:39 -0400 Subject: [PATCH] Make _test_utils depend on bitcoinconsensus feature --- lightning-background-processor/Cargo.toml | 3 --- lightning-persister/Cargo.toml | 4 ---- lightning/Cargo.toml | 10 +++++----- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/lightning-background-processor/Cargo.toml b/lightning-background-processor/Cargo.toml index 89ac2168..eec9da19 100644 --- a/lightning-background-processor/Cargo.toml +++ b/lightning-background-processor/Cargo.toml @@ -17,6 +17,3 @@ lightning-persister = { version = "0.0.13", path = "../lightning-persister" } [dev-dependencies] lightning = { version = "0.0.13", path = "../lightning", features = ["_test_utils"] } -[dev-dependencies.bitcoin] -version = "0.26" -features = ["bitcoinconsensus"] diff --git a/lightning-persister/Cargo.toml b/lightning-persister/Cargo.toml index a6e7242b..6b69e9af 100644 --- a/lightning-persister/Cargo.toml +++ b/lightning-persister/Cargo.toml @@ -19,9 +19,5 @@ libc = "0.2" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["winbase"] } -[dev-dependencies.bitcoin] -version = "0.26" -features = ["bitcoinconsensus"] - [dev-dependencies] lightning = { version = "0.0.13", path = "../lightning", features = ["_test_utils"] } diff --git a/lightning/Cargo.toml b/lightning/Cargo.toml index da9ac51a..73be5fff 100644 --- a/lightning/Cargo.toml +++ b/lightning/Cargo.toml @@ -14,7 +14,7 @@ Still missing tons of error-handling. See GitHub issues for suggested projects i allow_wallclock_use = [] fuzztarget = ["bitcoin/fuzztarget", "regex"] # Internal test utilities exposed to other repo crates -_test_utils = ["hex", "regex"] +_test_utils = ["hex", "regex", "bitcoin/bitcoinconsensus"] # Unlog messages superior at targeted level. max_level_off = [] max_level_error = [] @@ -32,13 +32,13 @@ bitcoin = "0.26" hex = { version = "0.3", optional = true } regex = { version = "0.1.80", optional = true } -[dev-dependencies.bitcoin] -version = "0.26" -features = ["bitcoinconsensus"] - [dev-dependencies] hex = "0.3" regex = "0.1.80" +[dev-dependencies.bitcoin] +version = "0.26" +features = ["bitcoinconsensus"] + [package.metadata.docs.rs] features = ["allow_wallclock_use"] # When https://github.com/rust-lang/rust/issues/43781 complies with our MSVR, we can add nice banners in the docs for the methods behind this feature-gate. -- 2.30.2