From: Elias Rohrer Date: Wed, 4 Sep 2024 08:53:37 +0000 (+0200) Subject: Re-add optional `std` feature dependencies to fix RGS and BP builds X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=3c1a5d3aa16d1c515eb0de511576ad15ec5064a4;p=rust-lightning Re-add optional `std` feature dependencies to fix RGS and BP builds We previously removed these, leading to failure to build under default features including `std`. --- diff --git a/lightning-background-processor/Cargo.toml b/lightning-background-processor/Cargo.toml index 70c19c5c7..0afc18fdf 100644 --- a/lightning-background-processor/Cargo.toml +++ b/lightning-background-processor/Cargo.toml @@ -15,12 +15,14 @@ rustdoc-args = ["--cfg", "docsrs"] [features] futures = [ ] -std = [] +std = ["lightning/std", "bitcoin-io/std", "bitcoin_hashes/std"] default = ["std"] [dependencies] bitcoin = { version = "0.32.2", default-features = false } +bitcoin_hashes = { version = "0.14.0", default-features = false } +bitcoin-io = { version = "0.1.2", default-features = false } lightning = { version = "0.0.124", path = "../lightning", default-features = false } lightning-rapid-gossip-sync = { version = "0.0.124", path = "../lightning-rapid-gossip-sync", default-features = false } diff --git a/lightning-rapid-gossip-sync/Cargo.toml b/lightning-rapid-gossip-sync/Cargo.toml index ef28f2943..03efbde3d 100644 --- a/lightning-rapid-gossip-sync/Cargo.toml +++ b/lightning-rapid-gossip-sync/Cargo.toml @@ -11,11 +11,13 @@ Utility to process gossip routing data from Rapid Gossip Sync Server. [features] default = ["std"] -std = [] +std = ["bitcoin-io/std", "bitcoin_hashes/std"] [dependencies] lightning = { version = "0.0.124", path = "../lightning", default-features = false } bitcoin = { version = "0.32.2", default-features = false } +bitcoin_hashes = { version = "0.14.0", default-features = false } +bitcoin-io = { version = "0.1.2", default-features = false } [target.'cfg(ldk_bench)'.dependencies] criterion = { version = "0.4", optional = true, default-features = false }