From 6aadefb8584600b7c265a436ec1c0bd68964974c Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Thu, 1 Feb 2024 09:50:22 +0100 Subject: [PATCH] added section on linking --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9e4a4b0..bb6b0a6 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,15 @@ cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bin ``` uniffi-bindgen-go path/to/definitions.udl ``` + Generates bindings file `path/to/uniffi/definitions/definitions.go` +# Linking + +You will need to make sure the compiled Rust binaries are in your `LD_LIBRARY_PATH` (set this to `target/release/` if you have built with the `--release` flag, for instance). + +You can also create a script to properly link these bindings - see `test_bindings.sh` in the root of this repository for an example. + # How to integrate bindings To integrate the bindings into your projects, simply add the generated bindings file to your project.