From: Valentine Wallace Date: Wed, 28 Apr 2021 20:23:39 +0000 (-0400) Subject: Make _test_utils depend on bitcoinconsensus feature X-Git-Tag: v0.0.14~6^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=6f5d81631ab9eb4967eebe4d2a8912903d40b541;p=rust-lightning Make _test_utils depend on bitcoinconsensus feature --- diff --git a/lightning-background-processor/Cargo.toml b/lightning-background-processor/Cargo.toml index 89ac21681..eec9da190 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 a6e7242b0..6b69e9afe 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 da9ac51a7..73be5fff3 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.