Registry / utility / rustc-hash

rustc-hash

JSON →
library2.1.2rscratesunverified

A speedy, non-cryptographic hashing algorithm used by rustc.

# Cargo.toml [dependencies] rustc-hash = "2.1.2"
INSTALL
IMPORT
SIG · RUSTC-HASH
R
rustc-hash
utilityrustv2.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FxHashMap
use rustc_hash::FxHashMap;

Create a fast hash map using the Fx hasher.

use rustc_hash::FxHashMap; let mut map = FxHashMap::default(); map.insert("key", 42); println!("Value: {}", map["key"]);
Debug
Known issues
gotchaNot suitable for cryptographic purposes
fix
Use a cryptographic hash like SHA-256 for security-sensitive applications
affects: >=2.0.0
Upgrade
Version history
2.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rustc-hash — cargo add rustc-hash · libregistry