This project is used to create native language bindings for the Rust rgb-lib library. APIs are wrapped and exposed in a uniform way using the mozilla/uniffi-rs bindings generator for each supported target language.
Each supported language has its own repository that includes this project as a git submodule.
Language | Platform | Repository |
---|---|---|
Kotlin | android | rgb-lib-kotlin |
Python | linux, macOS | rgb-lib-python |
Swift | iOS, macOS | rgb-lib-swift |
Use the rgb-lib-ffi-bindgen
tool to generate language binding code for the
above supported languages.
To run rgb-lib-ffi-bindgen
and see the available options use the command:
cargo run -p rgb-lib-ffi-bindgen -- --help
This project is highly inspired by bdk-ffi and made possible by the amazing work by the mozilla/uniffi-rs team.