justfile 776 B

1234567891011121314151617
  1. init:
  2. rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
  3. rustup target add aarch64-apple-darwin x86_64-apple-darwin
  4. rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
  5. cargo install cbindgen
  6. cargo install cargo-ndk
  7. python:
  8. rm -rf dist
  9. pip install -r bindings-python/requirements.txt
  10. cargo build --release
  11. cargo run -p uniffi-bindgen generate src/cashu.udl --language python --no-format -o bindings-python/src/cashu/
  12. cp ../../target/release/libcashu_ffi.so bindings-python/src/cashu/
  13. cp ../../target/release/libcashu_ffi.dylib bindings-python/src/cashu/ | true
  14. cd bindings-python && pip wheel --no-deps -w dist .
  15. pip install ./bindings-python/dist/cashu_protocol*.whl --force-reinstall