summaryrefslogtreecommitdiffhomepage
path: root/talpid-wireguard/src/logging.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-05-26Add BoringtunJoakim Hulthe1-3/+4
Co-authored-by: Joakim Hulthe <joakim.hulthe@mullvad.net> Co-authored-by: Sebastian Holmin <sebastian.holmin@mullvad.net> Co-authored-by: David Göransson <david.goransson@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net> Co-authored-by: David Lönnhager <david.l@mullvad.net>
2024-08-27Use std LazyLock instead of once_cell LazyDavid Lönnhager1-3/+2
2024-06-25Add a safe FFI wrapper in `wireguard-go-rs`Sebastian Holmin1-17/+18
- 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>
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-3/+3
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2023-08-31Add compile-time flag for wireguard-goDavid Lönnhager1-2/+2
2023-08-31Hide implementation details in logging moduleDavid Lönnhager1-36/+3
2023-08-31Remove userspace wg module on WindowsDavid Lönnhager1-9/+7
2023-08-08Always use std::ffi::c_char for a c_char typeLinus Färnstrand1-2/+2
2023-08-08Migrate from libc::c_void to std::ffi::c_voidLinus Färnstrand1-1/+2
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-3/+2
To align more with the upcoming standardizations within the Rust ecosystem which started with the release of `1.70.0` and the inevitable deprecation of `lazy_static`.
2023-04-21Apply clippy --fix fixesLinus Färnstrand1-2/+2
This commit does not contain everything that `cargo clippy --fix` changed on Windows. But the least controversial and simplest subset. The remaining fixes I felt could use some manual cleanup also.
2022-11-07Split up talpid-coreEmīls Piņķis1-0/+125