Skip to content

Commit e7580d2

Browse files
committed
Add Python bindings generation support
1 parent a418948 commit e7580d2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

scripts/uniffi_bindgen_generate.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/bash
22
source ./scripts/uniffi_bindgen_generate_kotlin.sh
3+
source ./scripts/uniffi_bindgen_generate_python.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
BINDINGS_DIR="./bindings/python"
3+
UNIFFI_BINDGEN_BIN="cargo +nightly run --features=uniffi/cli --bin uniffi-bindgen"
4+
5+
cargo +nightly build --release || exit 1
6+
$UNIFFI_BINDGEN_BIN generate bindings/ldk_node.udl --language python -o "$BINDINGS_DIR" || exit 1
7+
cp ./target/release/libldk_node.dylib "$BINDINGS_DIR"/libldk_node.dylib || exit 1

0 commit comments

Comments
 (0)