From: Matt Corallo Date: Wed, 9 Feb 2022 19:21:35 +0000 (+0000) Subject: Update build for lightning-invoice no-std support X-Git-Tag: v0.0.105.0^2~8 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d3711c70b984fa27f4fd226bb6ba24513240c314;p=ldk-c-bindings Update build for lightning-invoice no-std support --- diff --git a/genbindings.sh b/genbindings.sh index 2e404e7..9cc35ad 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -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 diff --git a/lightning-c-bindings/Cargo.toml b/lightning-c-bindings/Cargo.toml index c08f158..00fc19b 100644 --- a/lightning-c-bindings/Cargo.toml +++ b/lightning-c-bindings/Cargo.toml @@ -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 }