Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 5 additions & 17 deletions crates/iota-sdk-ffi/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
# IOTA SDK FFI

This crate can generate bindings for various languages (Go, Kotlin, Python, etc.) using [UniFFI](https://github.com/mozilla/uniffi-rs).
This crate can generate bindings for various languages using [UniFFI](https://github.com/mozilla/uniffi-rs).

Start by building the library to generate the appropriate dylib files.
## Supported languages

```sh
cargo build -p iota-sdk-ffi --lib --release
```

Next, run the binary to generate the bindings for the desired language.

```sh
cargo run --bin iota_sdk_bindings -- generate --library "target/release/libiota_sdk_ffi.dylib" --language python --out-dir bindings/python/lib --no-format
```

Finally, copy the dylib file to the output directory.

```sh
cp target/release/libiota_sdk_ffi.dylib bindings/python/lib/
```
- [Go](../../bindings/go)
- [Kotlin](../../bindings/kotlin)
- [Python](../../bindings/python)