X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=lightning-c-bindings%2FCargo.toml;h=3c77e22f7eb43908532bc98169153eafb5d86720;hp=77913486639b4d06067f733e38fe421e0e7b76bd;hb=e6d13668c10fadb44e3d6a5034687a2b53e45b72;hpb=4d85902c5191f9139c2d0be26c040ada0f19117f diff --git a/lightning-c-bindings/Cargo.toml b/lightning-c-bindings/Cargo.toml index 7791348..3c77e22 100644 --- a/lightning-c-bindings/Cargo.toml +++ b/lightning-c-bindings/Cargo.toml @@ -14,15 +14,20 @@ 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"] + [dependencies] -bitcoin = "0.26" -secp256k1 = { version = "0.20.1", features = ["global-context-less-secure"] } +bitcoin = { version = "0.27", default-features = false } +secp256k1 = { version = "0.20.3", features = ["global-context-less-secure"] } # Note that the following line is matched by genbindings to update the path -lightning = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "8a8c75a8fc96e5c8ed59e6d80a517bc59215b4d6" } +lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.106-bindings", default-features = false } +lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.106-bindings", default-features = false } +lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.106-bindings", default-features = false } +lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", branch = "0.0.106-bindings", default-features = false } -[patch.crates-io] -# Rust-Secp256k1 PR 279. Should be dropped once merged. -secp256k1 = { git = 'https://github.com/TheBlueMatt/rust-secp256k1', rev = '15a0d4195a20355f6b1e8f54c84eba56abc15cbd' } +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]