Proof of concept mechanical port of ircnet/ircd to Rust as part of a bit about C being insecure for network services
0

Configure Feed

Select the types of activity you want to include in your feed.

ircd.rs / leveva-cloak / Cargo.toml
914 B 22 lines
1[package] 2name = "leveva-cloak" 3version = "0.0.0" 4edition = "2021" 5publish = false 6description = "Deterministic IP/host cloaking — the FNV-keyed hidden-host transform behind usermode +x (a faithful port of Elemental-IRCd's ip_cloaking.c)." 7 8# Extracted from `leveva` (the IRC daemon) as a self-contained leaf library: a 9# perfect standalone leaf — every function depends only on `std::net::IpAddr`, with 10# zero IRC-specific coupling and zero intra-workspace deps. `leveva` re-exports it as 11# `leveva::cloak`. 12[lib] 13path = "src/lib.rs" 14 15[dependencies] 16 17[dev-dependencies] 18# Property/fuzz tests: the determinism, wire-safety, length/separator-preservation, 19# dispatch, alphabet, and FNV-shift-form invariants are fed arbitrary (incl. non-ASCII) 20# strings and the full v4/v6 address space. Stable-toolchain fuzz tier — the project 21# has no nightly/cargo-fuzz, so proptest is the runnable fuzzer. 22proptest = "1"