X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=lightning-c-bindings%2FCargo.toml;h=caf7556b49da25f57740c7f861b94996c382f574;hp=523806498b11a2b3320bc820b1882089994e357e;hb=c2700a649b5c6a1f9fb2c3f705b7dc4b647aecfb;hpb=a82e075188fc15a103234832686915c196bfe240 diff --git a/lightning-c-bindings/Cargo.toml b/lightning-c-bindings/Cargo.toml index 5238064..caf7556 100644 --- a/lightning-c-bindings/Cargo.toml +++ b/lightning-c-bindings/Cargo.toml @@ -14,14 +14,21 @@ crate-type = ["staticlib" # Note that the following line is matched exactly by genbindings to turn off dylib creation ,"cdylib"] +[features] +no-std = ["bitcoin/no-std", "lightning/no-std", "lightning-invoice/no-std", "core2"] +std = ["bitcoin/std", "lightning/std", "lightning-invoice/std", "lightning-background-processor/std"] + [dependencies] -bitcoin = "0.27" -secp256k1 = { version = "0.20.3", features = ["global-context-less-secure"] } +bitcoin = { version = "0.29", default-features = false } +secp256k1 = { version = "0.24", features = ["global-context", "recovery"] } # Note that the following line is matched by genbindings to update the path -lightning = { git = "https://github.com/rust-bitcoin/rust-lightning", rev = "853007800ebb433f53b5b10e1a941cc65c04e829", features = ["allow_wallclock_use"] } -lightning-persister = { git = "https://github.com/rust-bitcoin/rust-lightning", rev = "853007800ebb433f53b5b10e1a941cc65c04e829" } -lightning-invoice = { git = "https://github.com/rust-bitcoin/rust-lightning", rev = "853007800ebb433f53b5b10e1a941cc65c04e829" } -lightning-background-processor = { git = "https://github.com/rust-bitcoin/rust-lightning", rev = "853007800ebb433f53b5b10e1a941cc65c04e829" } +lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.113-bindings", default-features = false } +lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.113-bindings", default-features = false } +lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.113-bindings", default-features = false } +lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.113-bindings", default-features = false } +lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.113-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]