@@ -13,6 +13,22 @@ categories = ["cryptography::cryptocurrencies"]
1313
1414# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515
16+ [lib ]
17+ crate-type = [" staticlib" , " cdylib" ]
18+ name = " ldk_node"
19+
20+ [[bin ]]
21+ name = " uniffi-bindgen"
22+ path = " uniffi-bindgen.rs"
23+
24+ [profile .release-smaller ]
25+ inherits = " release"
26+ opt-level = ' z' # Optimize for size.
27+ lto = true # Enable Link Time Optimization
28+ codegen-units = 1 # Reduce number of codegen units to increase optimizations.
29+ panic = ' abort' # Abort on panic
30+ strip = true # Strip symbols from binary*
31+
1632[dependencies ]
1733lightning = { version = " 0.0.115" , features = [" max_level_trace" , " std" ] }
1834lightning-invoice = { version = " 0.23" }
@@ -51,13 +67,18 @@ serde_json = { version = "1.0" }
5167tokio = { version = " 1" , default-features = false , features = [ " rt-multi-thread" , " time" , " sync" ] }
5268esplora-client = { version = " 0.4" , default-features = false }
5369libc = " 0.2"
70+ uniffi = { version = " 0.23.0" , features = [" build" ] }
5471
5572[dev-dependencies ]
5673electrsd = { version = " 0.22.0" , features = [" legacy" , " esplora_a33e97e1" , " bitcoind_23_0" ] }
5774electrum-client = " 0.12.0"
5875proptest = " 1.0.0"
5976regex = " 1.5.6"
6077
78+ [build-dependencies ]
79+ uniffi = { version = " 0.23.0" , features = [" build" , " cli" ] }
80+
81+
6182[profile .release ]
6283panic = " abort"
6384
0 commit comments