6 ms·
WireGuard-rs – Official Rust implementation of WireGuard
- axiomdata316 2y agoI think this project is dormant right?
- perrohunter 2y agoLooks like it? 4 years old commits
- api 2y agoWhy is that a bad thing? Maybe it just works and doesn't need further changes.
- Aerbil313 2y agoCause it presumably has to be compatible with Wireguard upstream?
- api 2y agoWireguard is a pretty fixed and simple standard. Nothing needs to happen.
- throwaway290232 2y ago[dead]
- freeopinion 2y agoSo the "tcp: fix incorrect undo caused by DSACK of TLP retransmit" done five weeks ago for the Linux kernel didn't need to happen for the Rust implementation?
- palunon 2y agoI don't think this commit has anything to do with wireguard. It's a fix of a bug in the kernel TCP stack, which wireguard doesn't use. (Beware, the wireguard-linux repo is a "fork" of the complete linux kernel) And even if it did, a userland TUN implementation of the wireguard protocol probably doesn't have the same bugs as the linux kernel one.
- verandaguy 2y agoSure, the standard is relatively straightforward, but the implementations have to keep up with their environment. Wireguard in Linux has to keep up with changes in the kernel to a degree, for example.
- palunon 2y agoLooking at the supported platforms, it looks like the only one is Linux. The README has this to say about it though: "This will run on Linux; however YOU SHOULD NOT RUN THIS ON LINUX. Instead use the kernel module; see the installation page for instructions."
- GoblinSlayer 2y agoIt's like git: you write it for linux, then leave it as is.
- mhio 2y agoHow do rust projects work over rust versions? Is rust stable enough from 20-24 that the project would likely remain in a state to compile on a new rust tool chain? Do "Editions" completely solve this?
- deleted 2y ago[deleted]
- mmastrac 2y agoPretty much. I've had a great deal of luck rebuilding older projects. You can lock your toolchain as an added protection, but `cargo clippy --fix` is often enough to fix 90% of those. I think the only time I really struggled with a toolchain upgrade was with one of the crypto libraries that was bringing in a broken version of some SIMD code (cannot remember the exact details). For kicks I cloned and build this with Rust 1.80 and it built just fine (a few reasonable warnings), and even bumped the edition up to 2021. The README suggests you need nightly but that's clearly not the case. EDIT: the Rust code is actually unsoundly using MaybeUnit in a few places.
- mhio 2y agoThanks for the info. Is "lock your toolchain" via rustup? It appears to be the equivalent of rbenv/pyenv/nodenv/asdf etc but part of rust.
- saurik 2y agoIf anyone needs one of these, there is an UNofficial implementation by Cloudflare, which is used in Warp. https://github.com/cloudflare/boringtun https://github.com/cloudflare/boringtun
- scubbo 2y agoA high density of "things that Hacker News people dislike" in a single comment - bold! (FWIW I personally really like Cloudflare and think that a lot of their hate is unjustified. Warp is probably a good place for a new-to-programming person to start, but doesn't offer any functionality that makes me want to transition away from my already-customized shell)
- wmf 2y agoThe Cloudflare Warp VPN is not the same as the Warp terminal.
- scubbo 2y agoAh, I wasn't aware of Cloudflare's product of the same name - thanks!
- krageon 2y agoCloudflare is an evil company that at this point exists to a significant degree to hoover data for the US government and shelter sexual predators. Nobody should condone them or by using their technology promote their existence.
- gpm 2y agoI am hesitant to use this, it appears to be basically unmaintained https://github.com/cloudflare/boringtun/issues/344 https://github.com/cloudflare/boringtun/issues/344 https://github.com/cloudflare/boringtun/issues/407 https://github.com/cloudflare/boringtun/issues/407
- deleted 2y ago[deleted]
- webprofusion 2y agoSee also https://github.com/WireGuard/wireguard-rs https://github.com/WireGuard/wireguard-rs - also no longer maintained. Weird that this is linked on front page of HN now.
- frankjr 2y agoIt's the same project.
- layer8 2y agoWhat does “official” refer to in the title?
- zvolsky 2y agoThe word `official` was added by OP to hint at the fact that zx2c4 is the kernel contributor who created WireGuard.
- munksbeer 2y agoWhy do we get so many "Rust version of X" posts on HN, compared to any other language?
- tylerchilds 2y agoit is the only other language in the linux kernel besides c no other language accomplished that from a design perspective