summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-09-20 11:39:24 +0200
committerAlbin <albin@mullvad.net>2024-09-20 15:35:34 +0200
commit4c7b69b4a34ef63b18a86ff19f152e16b372c9e4 (patch)
tree1c675a5f992abb0b9e7f17507402faa13db684f4
parent25158bab26bd5784097727e69c6cda410e854c23 (diff)
downloadmullvadvpn-4c7b69b4a34ef63b18a86ff19f152e16b372c9e4.tar.xz
mullvadvpn-4c7b69b4a34ef63b18a86ff19f152e16b372c9e4.zip
Document cbindgen requirement in build instructions
-rw-r--r--android/BuildInstructions.md2
-rw-r--r--android/docs/BuildInstructions.macos.md5
2 files changed, 7 insertions, 0 deletions
diff --git a/android/BuildInstructions.md b/android/BuildInstructions.md
index fdbea86715..39cf2ad771 100644
--- a/android/BuildInstructions.md
+++ b/android/BuildInstructions.md
@@ -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:
diff --git a/android/docs/BuildInstructions.macos.md b/android/docs/BuildInstructions.macos.md
index 01546c570a..cf26a297d8 100644
--- a/android/docs/BuildInstructions.macos.md
+++ b/android/docs/BuildInstructions.macos.md
@@ -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)`.