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-cs.git
cd uniffi-bindgen-cs
git submodule update --init --recursive
DCO sign off is enforced for all commits. Be sure to use the -s
option to add a Signed-off-by
line to your commit messages.
git commit -s -m 'This is my commit message'
To run tests, dotnet
installation is required. Unlike uniffi-rs
, there is no integration with
cargo test
. Tests are written using xunit
.
-
Build
uniffi-bindgen-cs
executable, andlibuniffi_fixtures.so
shared library../build.sh
-
Generate test bindings using
uniffi-bindgen-cs
, and rundotnet test
command../test_bindings.sh
Running tests in Docker containers is easier, because manual dotnet
installation is not required.
./docker_build.sh
./docker_test_bindings.sh
Directory | Description |
---|---|
3rd-party/uniffi-rs/ | fork of uniffi-rs, used for tests |
dotnet-tests/UniffiCS/gen/ | generated test bindings |
dotnet-tests/UniffiCS.binding_tests/ | C# tests for bindings |
fixtures/ | additional test fixtures specific to C# bindings |
src/gen_cs/ | generator CLI code |
templates/ | generator C# templates |