Re:Memory safe ‘curl’ for a more secure internet
by nindalf on Friday October 09, 2020 @01:13PM
(#24732077)
Why does hyper pull in hashbrown? Isn't it identical to std::collections::HashMap?
[ Parent
| on HN ]
Re:Memory safe ‘curl’ for a more secure internet
by steveklabnik on Friday October 09, 2020 @01:15PM
(#24732105)
I 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.
Re:Memory safe ‘curl’ for a more secure internet
by CUViper on Friday October 09, 2020 @03:29PM
(#24733519)
The dependency goes hyper -> h2 -> indexmap -> hashbrown, and indexmap is built on hashbrown::raw::RawTable.
Re:Memory safe ‘curl’ for a more secure internet
by scottlamb on Friday October 09, 2020 @05:18PM
(#24734538)
Looks like the indexmap -> hashbrown dependency was added recently: https://github.com/bluss/indexmap/pull/131