talira

Compare

rustc-hashhashbrownRustCrypto Hashes
What it isThe fast, non-cryptographic FxHasher that rustc uses, with FxHashMap and FxHashSetSwissTable-based HashMap and HashSet for Rust, the implementation behind the standard library'sCollection of cryptographic hash functions written in pure Rust
KindOpen sourceOpen sourceOpen source
Trust0.470.620.57
Stars60630222349
Last commit2026-11-262026-11-282026-11-27
LicenceApache-2.0 OR MITApache-2.0 OR MITMIT OR Apache-2.0
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyThe Rust ProjectThe Rust ProjectRustCrypto
Features
  • FxHashMap and FxHashSet type aliases
  • fast non-cryptographic hasher
  • no_std support with the std feature off
  • Drop-in replacement for the standard HashMap and HashSet
  • foldhash as the default hasher
  • 1 byte of overhead per entry and no allocation for empty maps
  • SIMD lookups across several entries at once
  • no_std support (with a global allocator), plus optional serde and rayon support
  • SHA-2, SHA-3, BLAKE2, SHA-1, MD5, RIPEMD, Whirlpool, SM3, Streebog and more
  • one crate per algorithm on the shared digest traits
  • no_std, for bare metal and WebAssembly
  • security rating for each algorithm
Limitations
  • Not resistant to hash-flooding denial-of-service attacks, unlike the standard library's SipHash default
  • Its default hasher, foldhash, doesn't resist HashDoS as well as SipHash; use another hasher when that matters.