Merge pull request #24 from TheBlueMatt/main
[ldk-c-bindings] / lightning-c-bindings / Cargo.toml
1 [package]
2 name = "lightning-c-bindings"
3 version = "0.0.1"
4 authors = ["Matt Corallo"]
5 license = "Apache-2.0"
6 edition = "2018"
7 description = """
8 Utilities to fetch the chain from Bitcoin Core REST/RPC Interfaces and feed them into Rust Lightning.
9 """
10
11 [lib]
12 name = "ldk"
13 crate-type = ["staticlib"
14 # Note that the following line is matched exactly by genbindings to turn off dylib creation
15 ,"cdylib"]
16
17 [dependencies]
18 bitcoin = "0.26"
19 secp256k1 = { version = "0.20.1", features = ["global-context-less-secure"] }
20 # Note that the following line is matched by genbindings to update the path
21 lightning = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92", features = ["allow_wallclock_use"] }
22 lightning-persister = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92" }
23 lightning-invoice = { git = "https://git.bitcoin.ninja/rust-lightning", rev = "3996eaab6e2eaf5fde9374b51d952c0edef5ea92" }
24
25 [patch.crates-io]
26 # Rust-Secp256k1 PR 279. Should be dropped once merged.
27 secp256k1 = { git = 'https://github.com/TheBlueMatt/rust-secp256k1', rev = '50bf9e48ca0f0d267c41e729520a2673ecfaa84f' }
28
29 # Always force panic=abort, further options are set in the genbindings.sh build script
30 [profile.dev]
31 panic = "abort"
32
33 [profile.release]
34 panic = "abort"