]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop the `no-std` feature from BP and drop feature implications
authorMatt Corallo <git@bluematt.me>
Fri, 16 Aug 2024 19:07:05 +0000 (19:07 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 19 Aug 2024 15:09:40 +0000 (15:09 +0000)
Now that we don't have to have everything in our entire ecosystem
use the same `std`/`no-std` feature combinations we should start by
untangling our own features a bit.

This takes the first step by removing the `no-std` feature entirely
from the `lightning-background-processor` crate and removing most
feature implications on dependencies from the remaining `std`
feature.

It also addresses a CI oversight where we were not testing
`lightning-background-processor` without the `std` feature in CI at
all.

ci/ci-tests.sh
lightning-background-processor/Cargo.toml

index ff955666cc302318a761c84ffa43b7cb7ea53ea1..13ddcaf9a5b3bd3251e90aafe7f57fc1e4c2ad60 100755 (executable)
@@ -63,6 +63,7 @@ fi
 
 echo -e "\n\nTest futures builds"
 cargo test -p lightning-background-processor --verbose --color always --features futures
+cargo test -p lightning-background-processor --verbose --color always --features futures --no-default-features
 
 echo -e "\n\nTest Custom Message Macros"
 cargo test -p lightning-custom-message --verbose --color always
index c780cc3d64b4f58bed6f251b3fe9615a0ef4e992..741e62438a17e9bfd1e5a4f154b08cf14c3c6851 100644 (file)
@@ -15,8 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"]
 
 [features]
 futures = [ ]
-std = ["bitcoin/std", "lightning/std", "lightning-rapid-gossip-sync/std"]
-no-std = ["lightning/no-std", "lightning-rapid-gossip-sync/no-std"]
+std = []
 
 default = ["std"]