summaryrefslogtreecommitdiffhomepage
path: root/wireguard-go-rs/build.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-10-24Fix disallow compiling libwg & maybenot for Windows from non-WindowsMarkus Pettersson1-1/+4
2025-07-31Support 16kb page sizeDavid Göransson1-2/+5
2025-07-15Fix `collapsible_if` clippy lintMarkus Pettersson1-4/+5
2025-07-10Run `cargo fmt`Sebastian Holmin1-1/+1
2025-07-09Inline format argumentsLinus Färnstrand1-5/+1
2025-07-07Add musl as a target ABI for wireguard-go-rsMarkus Pettersson1-3/+22
Do not assume target ABI to be glibc. The current solution is not directly extensible by the user, but it easily could be if we really wanted to. At least we don't break cross-compilation to musl targets though.
2025-02-07Update windows build to use new maybenotLinus Färnstrand1-3/+8
Adds --locked to enforce lockfile, and explicitly build as shared library
2025-01-24Clean up wireguard-go-rs build scriptDavid Lönnhager1-109/+119
2025-01-24Fix debug profile selection in wireguard-go-rsDavid Lönnhager1-3/+7
2025-01-24Build `maybenot` with inherited `--profile`Markus Pettersson1-0/+1
2025-01-24Add more elaborate error messageMarkus Pettersson1-2/+2
2025-01-24Pack libwg.dll and maybenot.dll for wireguard-goDavid Lönnhager1-1/+1
2025-01-24Search for `lib.exe` when cross-compilingMarkus Pettersson1-17/+47
2025-01-24Compiling `wireguard-go-rs` to unsupported target arch is a hard errorMarkus Pettersson1-7/+8
2025-01-24Fix comments in wireguard-go-rsDavid Lönnhager1-2/+1
2025-01-24Compile `wireguard-go-rs` from unsupported host is a hard errorMarkus Pettersson1-8/+9
2025-01-24Don't trigger rerun if build artifacts change for wireguard-go-rs on WindowsDavid Lönnhager1-21/+15
This speeds up the build considerably by not always triggering a rebuild. Replacing the artifacts and expecting a rebuild does not seem to be a legitimate use case anyway
2025-01-24Fix maybenot-ffi linkageDavid Lönnhager1-6/+8
2025-01-24Do not strip prefix manuallyDavid Lönnhager1-2/+2
2025-01-24Search for `lib.exe` in more pathsMarkus Pettersson1-1/+2
2025-01-24Remove DAITA feature toggle from `wireguard-go-rs/build.rs`Markus Pettersson1-21/+16
2025-01-24Build wireguard-go via wireguard-go-rs on WindowsDavid Lönnhager1-20/+257
2025-01-16Fix enum variant lint warningDavid Lönnhager1-4/+4
2025-01-08Improve libwg rerun-if-changed detectionJonatan Rhodin1-8/+22
2024-09-06Build wg with daita support for androidAlbin1-2/+7
2024-08-30Print stderr if spawned subcommand failsMarkus Pettersson1-1/+1
Fix bug where stdout was printed instead of stderr if a spawned subcommand failed.
2024-08-29Fix `wireguard-go-rs` build for different Android targetsMarkus Pettersson1-14/+132
2024-08-15Delete build-wireguard-go.sh and put libwg.a in OUT_DIRJoakim Hulthe1-42/+169
2024-08-15Avoid always rebuilding wireguard-go-rsJoakim Hulthe1-1/+0
2024-06-26Enable DAITA on macOSDavid Lönnhager1-2/+1
2024-06-25Link statically against libwgMarkus Pettersson1-11/+13
Co-authored-by: David Lönnhager <david.l@mullvad.net>
2024-06-25Add `daita` as a Cargo cfg variableMarkus Pettersson1-1/+3
Gate DAITA compilation on `"cargo::rustc-cfg=daita"` emitted in build files per platform.
2024-06-25Add a safe FFI wrapper in `wireguard-go-rs`Sebastian Holmin1-0/+65
- Add local wireguard go import - Activate DAITA and add `wgActivateDaita` and `wgReceiveEvent` FFI - Implement `start_daita` on Wireguard-go tunnel type - Mention DAITA in `wireguard-go-rs` description - Do not compile `wireguard-go-rs` on Windows - Handle DAITA closed on `nil` event - Handle daita action timeouts in libwg - Remove noisy log lines - Remove `maybenot_on_action` callback - Remove unused link to `../build/lib` for `talpid-wireguard` - Bump the `wireguard-go` submodule to a signed release tag in Mullvad's `wireguard-go` fork. - Update path to `libwg/go.sum` in verification script Also: - Use u64 instead of *mut void as log context - Make Tunnel::set_config take a &mut self - Use dyn Error instead of i32s for wg errors Co-authored-by: Joakim Hulthe <joakim@hulthe.net>