cargo / compact_str

compact_str

cargo

A memory efficient string type that transparently stores strings on the stack, when possible

Audits

PE Patrick Elsen 2026-06-01

compact_str@0.9.1 · 1 finding

datastructure-impl-boundsdatastructure-impl-correctdatastructure-impl-safedatastructure-impl-testedhas-binarieshas-build-exechas-fuzz-testshas-install-exechas-integration-testshas-property-testshas-unit-testsimpl-algorithmimpl-concurrencyimpl-cryptoimpl-datastructureimpl-interpreterimpl-jitimpl-parserimpl-protocolis-benignunsafe-documentedunsafe-minimalunsafe-safeunsafe-testeduses-concurrencyuses-cryptouses-environmentuses-execuses-filesystemuses-interpreteruses-jituses-networkuses-unsafe
PE Patrick Elsen 2026-05-27

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.

datastructure-impl-boundsdatastructure-impl-correctdatastructure-impl-safedatastructure-impl-testedhas-binarieshas-build-exechas-fuzz-testshas-install-exechas-integration-testshas-property-testshas-unit-testsimpl-algorithmimpl-concurrencyimpl-cryptoimpl-datastructureimpl-interpreterimpl-jitimpl-parserimpl-protocolis-benignunsafe-documentedunsafe-minimalunsafe-safeunsafe-testeduses-concurrencyuses-cryptouses-environmentuses-execuses-filesystemuses-interpreteruses-jituses-networkuses-unsafe