From c59de30a32149c34c2928fdb2e61fd2df96a1f1d Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Wed, 27 Nov 2024 13:09:44 +0100 Subject: [PATCH] ffi: build only lib and not bins in `python` commands Signed-off-by: Yuki Kishimoto --- bindings/nostr-sdk-ffi/justfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/nostr-sdk-ffi/justfile b/bindings/nostr-sdk-ffi/justfile index 311f5cd8a..eefba3cd1 100755 --- a/bindings/nostr-sdk-ffi/justfile +++ b/bindings/nostr-sdk-ffi/justfile @@ -83,7 +83,7 @@ swift: python: rm -rf python/dist pip install -r python/requirements.txt - cargo build --release + cargo build --lib --release cargo run --bin uniffi-bindgen generate --library ../../target/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/ cp ../../target/release/libnostr_sdk_ffi.so python/src/nostr-sdk/ cd python && python setup.py bdist_wheel @@ -93,7 +93,7 @@ python: python: rm -rf python/dist pip install -r python/requirements.txt - cargo build --release + cargo build --lib --release cargo run --bin uniffi-bindgen generate --library ../../target/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/ cp ../../target/release/libnostr_sdk_ffi.dylib python/src/nostr-sdk/ cd python && python setup.py bdist_wheel @@ -102,7 +102,7 @@ python: [windows] python: pip install -r python\requirements.txt - cargo build --release + cargo build --lib --release cargo run --bin uniffi-bindgen generate --library ..\..\target\release\nostr_sdk_ffi.dll --language python --no-format -o python\src\nostr-sdk\ copy ..\..\target\release\nostr_sdk_ffi.dll python\src\nostr-sdk del /F /Q python\dist\* 2>nul || exit /b 0