// the take
reliable.rs is a small Rust library that adds packet acknowledgement, fragmentation/reassembly, and RTT/jitter/loss stats on top of your own UDP socket — it's a direct port of Glenn Fiedler's C `reliable` library and stays wire-compatible with it. It's for gamedev/netcode developers who already own their UDP socket code and just need ack tracking and fragmentation, not a full transport or connection layer.
Wire compatibility with the C original isn't just claimed — CI links the vendored C source via FFI and checks byte-identical datagrams between a Rust pair and a C pair on every push, across Linux/macOS/Windows. The crate has zero unsafe code (`#![forbid(unsafe_code)]`) and a single dependency (the `log` facade), which matters for something parsing untrusted network bytes. Fuzzing isn't an afterthought: the C repo's libFuzzer harness was ported to cargo-fuzz and actually exercises header parsing, fragment reassembly, and ack/duplicate handling, with a 1-minute smoke run on every push and a 30-minute scheduled run weekly. The API swaps the C callback style for closures at the call site plus `Drop` for cleanup, which is a reasonable, idiomatic redesign rather than a mechanical transliteration.
It only does ack/fragmentation/stats — no socket I/O, no encryption, no handshake/connection management, so you're still building or sourcing the rest of a netcode stack yourself. Endpoints aren't thread-safe, so a server fanning out one endpoint per client needs its own locking strategy or thread-per-connection discipline. The ack buffer has fixed capacity and silently drops (just logs) acks you haven't cleared yet, which is a sharp edge if your per-frame update loop stalls or you forget `clear_acks`/`drain_acks`. At 3 stars with one author behind this and several sibling C→Rust ports, there's essentially no evidence of real-world production use outside the author's own projects yet, despite the solid CI story.
We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →