aube-util 1.12.0

Shared helpers reused across aube crates (semantic hashing, async dedup, atomic filesystem ops, bincode sidecars).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Hash-map type aliases backed by foldhash. Better avalanche than
//! FxHash on integer-suffixed string keys (the shape aube's dep_path
//! peer-context suffixes take). All inputs come from locked manifest
//! data so FixedState (no random seed) is fine, no DoS surface.

/// Drop-in for `std::collections::HashMap` with foldhash backing.
/// `default()` and `with_capacity_and_hasher` work identically to
/// rustc_hash's `FxHashMap`.
pub type FxMap<K, V> = std::collections::HashMap<K, V, foldhash::fast::FixedState>;

/// Drop-in for `std::collections::HashSet` with foldhash backing.
pub type FxSet<T> = std::collections::HashSet<T, foldhash::fast::FixedState>;