]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Add `lightning-background-processor`'s new std feature
authorMatt Corallo <git@bluematt.me>
Fri, 3 Mar 2023 02:04:32 +0000 (02:04 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 6 Mar 2023 22:48:28 +0000 (22:48 +0000)
genbindings.sh
lightning-c-bindings/Cargo.toml

index 65dbb25982d19737302935c75da520dee3945da3..5f2c26f13566d06d6953cd6095de950e07cbb466 100755 (executable)
@@ -183,14 +183,14 @@ echo > /tmp/crate-source.txt
 if [ "$2" = "true" ]; then
        add_crate lightning lightning --features=std
        add_crate "lightning-persister" "lightning_persister"
-       add_crate "lightning-background-processor" "lightning_background_processor"
+       add_crate "lightning-background-processor" "lightning_background_processor" --features=std
        add_crate "lightning-invoice" "lightning_invoice" --features=std
        add_crate "lightning-rapid-gossip-sync" "lightning_rapid_gossip_sync"
        CARGO_BUILD_ARGS="--features=std"
 else
        add_crate lightning lightning --features=no-std
        drop_crate "lightning-persister"
-       drop_crate "lightning-background-processor"
+       add_crate "lightning-background-processor" "lightning_background_processor"
        add_crate "lightning-rapid-gossip-sync" "lightning_rapid_gossip_sync" --features=no-std
        add_crate "lightning-invoice" "lightning_invoice" --features=no-std
        CARGO_BUILD_ARGS="--features=no-std"
index bf7d153d9ff2eb704d6f46c648cc966954642013..caf7556b49da25f57740c7f861b94996c382f574 100644 (file)
@@ -16,7 +16,7 @@ crate-type = ["staticlib"
 
 [features]
 no-std = ["bitcoin/no-std", "lightning/no-std", "lightning-invoice/no-std", "core2"]
-std = ["bitcoin/std", "lightning/std", "lightning-invoice/std"]
+std = ["bitcoin/std", "lightning/std", "lightning-invoice/std", "lightning-background-processor/std"]
 
 [dependencies]
 bitcoin = { version = "0.29", default-features = false }