]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add `lightning-background-processor` `no-std` feature
authorMatt Corallo <git@bluematt.me>
Fri, 21 Jul 2023 20:26:16 +0000 (20:26 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 21 Jul 2023 20:33:13 +0000 (20:33 +0000)
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

index 7b746307012d08dad277a01083fef248a61db51d..3e11200e90447deecfa21df8fcd034fe28760334 100644 (file)
@@ -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"]