]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Build the `lightning-transaction-sync` crate in bindings
authorMatt Corallo <git@bluematt.me>
Tue, 4 Jun 2024 20:49:24 +0000 (20:49 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 6 Jun 2024 13:45:28 +0000 (13:45 +0000)
genbindings.sh
lightning-c-bindings/Cargo.toml
lightning-c-bindings/src/lib.rs

index bb39994441bf5cb3d0882cce5c21926010aeeccc..db3e07a69374aecf9375eb704ea0dbdb7729df38 100755 (executable)
@@ -206,12 +206,14 @@ if [ "$2" = "true" ]; then
        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" --features=std
+       add_crate "lightning-transaction-sync" "lightning_transaction_sync" --features=esplora-blocking,electrum
 else
        add_crate lightning lightning --features=no-std
        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-rapid-gossip-sync" "lightning_rapid_gossip_sync" --features=no-std
+       drop_crate "lightning-transaction-sync"
        CARGO_BUILD_ARGS="--features=no-std"
 fi
 
index f15af9fd312709b4ac72076554e77d06fef80503..863767e7179474bc43d271e41b00f03daa4e0880 100644 (file)
@@ -26,6 +26,7 @@ lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning
 lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false, features = ["std"] }
 lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false, features = ["std"] }
 lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false, features = ["std"] }
+lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.123-bindings", default-features = false, features = ["esplora-blocking", "electrum"] }
 
 core2 = { version = "0.3.0", optional = true, default-features = false }
 
index f4d957dc87f558620f8787639240d77476f27d6a..c88879e85c584d541b64d8372ef840cbba7cefcc 100644 (file)
@@ -26,3 +26,4 @@ pub mod lightning_persister;
 pub mod lightning_background_processor;
 pub mod lightning_invoice;
 pub mod lightning_rapid_gossip_sync;
+pub mod lightning_transaction_sync;