]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update build for lightning-invoice no-std support
authorMatt Corallo <git@bluematt.me>
Wed, 9 Feb 2022 19:21:35 +0000 (19:21 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 1 Mar 2022 04:20:01 +0000 (04:20 +0000)
genbindings.sh
lightning-c-bindings/Cargo.toml

index 2e404e7e31933fe84c52d57d1bd7d866281f15c1..9cc35ad69abbd54ce292b6dcc19fb08a63a1b326 100755 (executable)
@@ -171,13 +171,13 @@ 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-invoice" "lightning_invoice"
+       add_crate "lightning-invoice" "lightning_invoice" --features=std
        CARGO_BUILD_ARGS="--features=std"
 else
        add_crate lightning lightning --features=no-std
        drop_crate "lightning-persister"
        drop_crate "lightning-background-processor"
-       drop_crate "lightning-invoice"
+       add_crate "lightning-invoice" "lightning_invoice" --features=no-std
        CARGO_BUILD_ARGS="--features=no-std"
 fi
 
index c08f158c3c3e8a5115a3ed5c39f0be5b17a531f6..00fc19b92c51e16f05f303c5349f9d45a3ddfb5c 100644 (file)
@@ -15,8 +15,8 @@ crate-type = ["staticlib"
 ,"cdylib"]
 
 [features]
-no-std = ["bitcoin/no-std", "lightning/no-std", "core2"]
-std = ["bitcoin/std", "lightning/std"]
+no-std = ["bitcoin/no-std", "lightning/no-std", "lightning-invoice/no-std", "core2"]
+std = ["bitcoin/std", "lightning/std", "lightning-invoice/std"]
 
 [dependencies]
 bitcoin = { version = "0.27", default-features = false }