Skip to content

Commit

Permalink
Add Python bindings generation support
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed May 8, 2023
1 parent 26ba9a7 commit 80664de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/uniffi_bindgen_generate.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
source ./scripts/uniffi_bindgen_generate_kotlin.sh
source ./scripts/uniffi_bindgen_generate_python.sh
7 changes: 7 additions & 0 deletions scripts/uniffi_bindgen_generate_python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
BINDINGS_DIR="./bindings/python"
UNIFFI_BINDGEN_BIN="cargo +nightly run --features=uniffi/cli --bin uniffi-bindgen"

cargo +nightly build --release || exit 1
$UNIFFI_BINDGEN_BIN generate bindings/ldk_node.udl --language python -o "$BINDINGS_DIR" || exit 1
cp ./target/release/libldk_node.dylib "$BINDINGS_DIR"/libldk_node.dylib || exit 1

0 comments on commit 80664de

Please sign in to comment.