compact_str
cargoA memory efficient string type that transparently stores strings on the stack, when possible
Audits
compact_str@0.9.1 · 1 finding
Audit of compact_str 0.9.1, a Rust small-string-optimization library exposing CompactString, a 24-byte (12 on 32-bit) String replacement with three internal variants discriminated by the last byte. Heavy unsafe use, but every site is justified and exercised by property tests, quickcheck, libFuzzer, AFL++, and miri in CI. One low-severity correctness finding (FINDING-1): f32/f64 to_compact_string formatting diverges from std::fmt on powerpc64.
compact_str@0.9.0
compact_str 0.9.0 is a no_std crate providing CompactString, a String-sized small-string-optimised type with three variants (inline, heap, &'static str). Heavy unsafe (~165 blocks) is locally justified, fully documented, and exercised by proptest + quickcheck under miri plus libfuzzer/AFL/honggfuzz harnesses. No build scripts, proc-macros, binaries, or system I/O. No findings.