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`.
This commit is contained in:
Elias Rohrer 2024-09-04 10:53:37 +02:00
parent 6662c5c7b9
commit 3c1a5d3aa1
No known key found for this signature in database
GPG Key ID: 36153082BDF676FD
2 changed files with 6 additions and 2 deletions

View File

@ -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 }

View File

@ -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 }