Skip to content

Commit eba9daf

Browse files
committed
bindings: simplicity
1 parent 2e3e205 commit eba9daf

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lwk_bindings/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ lwk_wollet = { version = "0.13.0" }
1313
lwk_test_util = { version = "0.13.0" }
1414
lwk_payment_instructions = { version = "0.1.0" }
1515
lwk_boltz = { version = "0.13.0", optional = true }
16+
lwk_simplicity_options = { version = "0.1.0", optional = true }
1617
tokio = { version = "1.0", features = [
1718
"rt",
1819
], optional = true } # move into lwk_boltz
@@ -34,6 +35,7 @@ name = "lwk"
3435
default = ["lightning"]
3536
foreign_bindings = []
3637
lightning = ["lwk_boltz", "tokio", "log"]
38+
simplicity = ["lwk_simplicity_options"]
3739

3840
[package.metadata.docs.rs]
3941
all-features = true

lwk_bindings/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ pub use invoice::{Bolt11Invoice, LightningPayment};
4343
#[cfg(feature = "lightning")]
4444
pub use lightning::{BoltzSession, LogLevel, Logging, LoggingLink};
4545

46+
#[cfg(feature = "simplicity")]
47+
mod simplicity;
48+
#[cfg(feature = "simplicity")]
49+
pub use simplicity::test_args;
50+
4651
pub use blockdata::address::Address;
4752
pub use blockdata::address_result::AddressResult;
4853
pub use blockdata::block_header::BlockHeader;

lwk_bindings/src/simplicity.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[uniffi::export]
2+
pub fn test_args() -> String {
3+
lwk_simplicity_options::test_args()
4+
}

0 commit comments

Comments
 (0)