Introducing sanstun: A sans-IO, parallel-friendly, userspace WireGuard implementation in Rust
Firezone’s new Rust WireGuard implementation separates protocol state from I/O and lets packet encryption and decryption run on worker threads while one thread owns tunnel bookkeeping.
The API routes incoming datagrams through a single interface that enforces rate limits before handing typed messages to tunnels. Its benchmark suggests crypto dominates bookkeeping, though the article cautions that thread handoff and other overhead make its theoretical speedup unrealistic. Firezone has deprecated its boringtun fork in favor of sanstun.
HN readers debated explicit state machines versus async and questioned the security trade-offs of another WireGuard implementation; the author explained the cross-platform and API constraints behind the choice.