0.22.3 • Published 1 year ago
identity-uniffi-poc v0.22.3
Build
Run cargo build
to generate the initial Rust implementation.
Install Dependencies
The following dependencies are only required for linting once the foreign language bindings are generated. Without it the linting will fail, but the bindings will still be correctly generated.
brew install ktlint
brew install yapf
Foreign language bindings & tests
Python
Generate the bindings
cargo run --bin uniffi-bindgen generate src/identity.udl -o samples/python --language python
Copy the binary
cp target/debug/libidentity_uniffi_poc.dylib samples/python/libidentity_uniffi_poc.dylib
Run the tests
python3 samples/python/test.py`
Kotlin
Generate the bindings
cargo run --bin uniffi-bindgen generate src/identity.udl -o samples/kotlin/app/src/main/kotlin --language kotlin
Copy the binary
Run the tests
cd cd samples/kotlin
gradle test