mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
This will switch to use the clang/C WASM ABI instead of the wasm_bindgen WASM ABI as of rustc 1.51 (or nightly since [1]), allowing us to link C and Rust code in a single wasm binary. [1] https://github.com/rust-lang/rust/pull/79998
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
name = "lightning-c-bindings"
|
|
version = "0.0.1"
|
|
authors = ["Matt Corallo"]
|
|
license = "Apache-2.0"
|
|
edition = "2018"
|
|
description = """
|
|
Utilities to fetch the chain from Bitcoin Core REST/RPC Interfaces and feed them into Rust Lightning.
|
|
"""
|
|
|
|
[lib]
|
|
name = "ldk"
|
|
crate-type = ["staticlib"
|
|
# Note that the following line is matched exactly by genbindings to turn off dylib creation
|
|
,"cdylib"]
|
|
|
|
[dependencies]
|
|
bitcoin = "0.26"
|
|
secp256k1 = { version = "0.20.1", features = ["global-context-less-secure"] }
|
|
lightning = { version = "0.0.12", path = "../lightning" }
|
|
|
|
[patch.crates-io]
|
|
# Rust-Secp256k1 PR 279. Should be dropped once merged.
|
|
secp256k1 = { git = 'https://github.com/TheBlueMatt/rust-secp256k1', rev = '15a0d4195a20355f6b1e8f54c84eba56abc15cbd' }
|
|
|
|
# Always force panic=abort, further options are set in the genbindings.sh build script
|
|
[profile.dev]
|
|
panic = "abort"
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
|
|
# We eventually want to join the root workspace, but for now, the bindings generation is
|
|
# a bit brittle and we don't want to hold up other developers from making changes just
|
|
# because they break the bindings
|
|
[workspace]
|