]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
New crates/features and upgrade dependencies (removing `core2`!)
authorMatt Corallo <git@bluematt.me>
Mon, 26 Aug 2024 19:48:55 +0000 (19:48 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 4 Sep 2024 01:33:52 +0000 (01:33 +0000)
genbindings.sh
lightning-c-bindings/Cargo.toml

index 1d86ac0363c42a518d6f94605a9cc85d21e7963f..258f6662c6daaed58ff14349abcf8874bf89bd11 100755 (executable)
@@ -200,17 +200,19 @@ function drop_crate() {
 echo > /tmp/crate-source.txt
 if [ "$2" = "true" ]; then
        add_crate lightning lightning --features=std
+       add_crate lightning-types lightning_types
        add_crate "lightning-persister" "lightning_persister"
-       add_crate "lightning-background-processor" "lightning_background_processor" --features=std
+       add_crate "lightning-background-processor" "lightning_background_processor" --features=std,lightning/std
        add_crate "lightning-invoice" "lightning_invoice" --features=std
-       add_crate "lightning-rapid-gossip-sync" "lightning_rapid_gossip_sync" --features=std
+       add_crate "lightning-rapid-gossip-sync" "lightning_rapid_gossip_sync" --features=std,lightning/std
        CARGO_BUILD_ARGS="--features=std"
 else
        add_crate lightning lightning --features=no-std
+       add_crate lightning-types lightning_types
        drop_crate "lightning-persister"
-       add_crate "lightning-background-processor" "lightning_background_processor" --features=no-std
-       add_crate "lightning-rapid-gossip-sync" "lightning_rapid_gossip_sync" --features=no-std
-       add_crate "lightning-invoice" "lightning_invoice" --features=no-std
+       add_crate "lightning-background-processor" "lightning_background_processor" --features=lightning/no-std
+       add_crate "lightning-rapid-gossip-sync" "lightning_rapid_gossip_sync" --features=lightning/no-std
+       add_crate "lightning-invoice" "lightning_invoice"
        CARGO_BUILD_ARGS="--features=no-std"
 fi
 
index a9279889bcbea81a9f77ff502fbd9bde32776b4e..aaf64db22d2df803fe7129bddecb879895ced97e 100644 (file)
@@ -15,21 +15,21 @@ crate-type = ["staticlib"
 ,"cdylib"]
 
 [features]
-no-std = ["bitcoin/no-std", "lightning/no-std", "lightning-invoice/no-std", "lightning-background-processor/no-std", "core2"]
-std = ["bitcoin/std", "lightning/std", "lightning-invoice/std", "lightning-background-processor/std"]
+no-std = ["lightning/no-std"]
+std = ["bitcoin/std", "lightning/std", "lightning-invoice/std", "lightning-background-processor/std", "lightning-rapid-gossip-sync/std"]
 
 [dependencies]
-bitcoin = { version = "0.30", default-features = false }
-secp256k1 = { version = "0.27", features = ["global-context", "recovery"] }
+bitcoin = { version = "0.32", default-features = false }
+bech32 = { version = "0.9", default-features = false }
+secp256k1 = { version = "0.29", features = ["global-context", "recovery"] }
 # Note that the following line is matched by genbindings to update the path
 lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false }
+lightning-types = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false }
 lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false }
 lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false }
 lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false }
 lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false }
 
-core2 = { version = "0.3.0", optional = true, default-features = false }
-
 # Always force panic=abort, further options are set in the genbindings.sh build script
 [profile.dev]
 panic = "abort"