bitflags
cargoA macro to generate structures which behave like bitflags.
Audits
bitflags@2.11.1 · 1 finding
bitflags 2.11.1 is a declarative-macro crate generating typed flag-set wrappers; the crate body has forbid(unsafe_code) outside tests and the only unsafe is well-justified Pod/Zeroable impls emitted into consumers behind the optional bytemuck feature. One low-severity correctness finding in an example file (BitXor computes AND); safe to deploy.
has-binarieshas-build-exechas-fuzz-testshas-install-exechas-integration-testshas-property-testshas-unit-testsimpl-algorithmimpl-concurrencyimpl-cryptoimpl-datastructureimpl-interpreterimpl-jitimpl-parserimpl-protocolis-benignparser-impl-correctparser-impl-safeparser-impl-testedunsafe-documentedunsafe-minimalunsafe-safeunsafe-testeduses-concurrencyuses-cryptouses-environmentuses-execuses-filesystemuses-interpreteruses-jituses-networkuses-unsafe
bitflags@1.3.2
Mature no_std declarative-macro library that generates bit-flag set types over primitive integers. Single unsafe API (from_bits_unchecked) is documented and memory-safe by construction. Exhaustive test enumeration over an 11-bit domain establishes set-operation correctness. No findings; safe to deploy.
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