Pull requests are welcome!
Create an issue on Github, we will try to get back to you ASAP.
git clone https://github.com/NordSecurity/uniffi-bindgen-go.git
cd uniffi-bindgen-go
git submodule update --init --recursive
To run tests, go
installation is required. Unlike uniffi-rs
, there is no integration with
cargo test
. Tests are written using testing package.
-
Build
uniffi-bindgen-go
executable, andlibuniffi_fixtures.so
shared library../build.sh
-
Generate test bindings using
uniffi-bindgen-go
, and rungo test
command../test_bindings.sh
Running tests in Docker containers is easier, because manual rust
/go
installations are not required.
./docker_build.sh
./docker_test_bindings.sh
Directory | Description |
---|---|
3rd-party/uniffi-rs/ | fork of uniffi-rs, used for tests |
binding_tests/generated | generated test bindings |
binding_tests/ | Go tests for bindings |
fixtures/ | additional test fixtures specific to Go bindings |
src/gen_go/ | generator CLI code |
bindgen/templates/ | generator Go templates |