4 ms·
Why does hyper pull in hashbrown? Isn't it identical to std::collections::HashMap?
by nindalf 6y ago
Why does hyper pull in hashbrown? Isn't it identical to std::collections::HashMap?
- steveklabnik 6y agoI imagine that it's there because it is older than that happening. HashBrown's README says > Since Rust 1.36, this is now the HashMap implementation for the Rust standard library. However you may still want to use this crate instead since it works in environments without std, such as embedded systems and kernels. I don't know if that use case is important to Hyper or not.
- CUViper 6y agoThe dependency goes hyper -> h2 -> indexmap -> hashbrown, and indexmap is built on hashbrown::raw::RawTable.
- scottlamb 6y agoLooks like the indexmap -> hashbrown dependency was added recently: https://github.com/bluss/indexmap/pull/131 https://github.com/bluss/indexmap/pull/131