summaryrefslogtreecommitdiffhomepage
path: root/talpid-windows/src/net.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-10-03Bump windows-sys version to latestDavid Lönnhager1-16/+35
This also refactors and documents some code
2025-07-10Run `cargo fmt`Sebastian Holmin1-7/+7
2025-02-25Fix improper pointer provenanceJoakim Hulthe1-3/+1
`&mut buffer[0] as *mut u8` will create a raw pointer that is only allowed to access the very first byte of `buffer`. `slice::as_mut_ptr` is preferred.
2025-02-25Allow undocumented_unsafe_blocks in some modulesJoakim Hulthe1-0/+2
2025-02-25Add some safety comments in talpid_windows::netJoakim Hulthe1-0/+2
2025-02-12Format workspaceSebastian Holmin1-7/+7
The 2024 edition contains new formatting rules. All of these are not compatible with the 2021 formatting style, but most of them are. To change the formatting to be as close to the new style as possible while remaining compatible with the 2021 edition, I first ran `cargo +beta fmt` with the edition set to 2024, then, with the edition set to 2021, I ran `cargo fmt`.
2025-02-12Fix `unsafe_op_in_unsafe_fn` warningSebastian Holmin1-12/+14
2024-04-03Enable single-use-lifetimes rustc lintLinus Färnstrand1-1/+1
Removes superfluous lifetime definitions. Simplifying the code
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-19/+18
`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.
2024-02-13Fix MTU detection below min IPv6 value for windowsSebastian Holmin1-17/+4
2024-02-09Add windows MTU detection implementation.Sebastian Holmin1-0/+22
2024-01-05Run `cargo +nightly fmt`Sebastian Holmin1-1/+1
2023-10-20Move talpid-windows-net into talpid-windowsDavid Lönnhager1-0/+491