cranpose_core/collections.rs
1//! Collections the framework's crates share: the hash map every crate
2//! uses, the bounded caches their hot paths keep, and the box that holds
3//! the properties few values set.
4
5pub mod bounded_lru;
6pub mod pass_aged;
7pub mod rare;
8
9#[cfg(feature = "std-hash")]
10pub mod map {
11 pub use std::collections::{
12 HashMap, HashSet,
13 hash_map::{Entry, RandomState},
14 };
15}
16
17#[cfg(not(feature = "std-hash"))]
18pub mod map {
19 pub use std::collections::hash_map::Entry;
20
21 pub use foldhash::{HashMap, HashSet, fast::RandomState};
22}