Skip to content

Commit

Permalink
Document cbindgen requirement in build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Sep 20, 2024
1 parent 93c9968 commit 6a39ca9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/BuildInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ Linux distro:
#### 5. Install and configure Rust toolchain

- Get the latest **stable** Rust toolchain via [rustup.rs](https://rustup.rs/).
Also install `cbindgen` which is required to build `wireguard-go-rs`:
`cargo install --force cbindgen`

- Configure Android cross-compilation targets and set up linker and archiver. This can be done by setting the following
environment variables:
Expand Down
5 changes: 5 additions & 0 deletions android/docs/BuildInstructions.macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ Finish the install of `rustup`:
rustup-init
```

Install `cbindgen` which is required to build `wireguard-go-rs`:
```bash
cargo install --force cbindgen
```

## 2. Install SDK Tools and Android NDK Toolchain
Open Android Studio -> Tools -> SDK Manager, and install `Android SDK Command-line Tools (latest)`.

Expand Down

0 comments on commit 6a39ca9

Please sign in to comment.