From ae33b093b8e2f50f92b777520506a0143e029fca Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 21 Jul 2023 20:26:16 +0000 Subject: [PATCH] Add `lightning-background-processor` `no-std` feature While this is generally uneccessary as users set the `no-std` or `std` features on the `lightning` crate directly, having this allows `lightning-background-processor` to be built by itself without extra dep lines. Specifically, the bindings are moving to using the `-Z avoid-dev-deps` option, which now causes `lightning-background-processor` to fail to build directly. --- lightning-background-processor/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightning-background-processor/Cargo.toml b/lightning-background-processor/Cargo.toml index 7b746307..3e11200e 100644 --- a/lightning-background-processor/Cargo.toml +++ b/lightning-background-processor/Cargo.toml @@ -15,7 +15,8 @@ rustdoc-args = ["--cfg", "docsrs"] [features] futures = [ ] -std = ["lightning/std", "lightning-rapid-gossip-sync/std"] +std = ["bitcoin/std", "lightning/std", "lightning-rapid-gossip-sync/std"] +no-std = ["bitcoin/no-std", "lightning/no-std", "lightning-rapid-gossip-sync/no-std"] default = ["std"] -- 2.30.2