Skip to content

Commit

Permalink
added section on linking
Browse files Browse the repository at this point in the history
  • Loading branch information
mfahampshire committed Feb 1, 2024
1 parent a2d2500 commit 6aadefb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6aadefb

Please sign in to comment.