-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with hashbrown 0.4 -> 0.5 upgrade #279
Comments
handlebars 2.0.0 -> 2.0.1 upgraded `hashbrown` versions from 0.4 to 0.5 and in doing so broke the Abscissa v0.1 release, which now has an older incompatible v0.4. I've opened an upstream issue about this here: sunng87/handlebars-rust#279 To avoid this in the future, this change removes the external dependency. The implementation is a bit hacky, but gets the job done.
I see. That was a common issue in rust ecosystem. To be practical I will be reexport those types used in public APIs, that was your 1 solution. And I will be releasing the change in a patch version, do you think it works for you? |
@sunng87 I think the best option is probably to switch back to That said, whatever works: I'd be happy for a 2.0.2 that re-exports the |
That was annoying because either reexporting or switching to std I will benchmark performance between current hashbrown and the one in std to decide if I will switch in future. |
(feat) switch back to std hashmap [#279]
hashbrown::HashMap
is part of the public API of this crate in several places, e.g.:https://docs.rs/handlebars/2.0.1/handlebars/struct.Handlebars.html#method.get_templates
Between Handlebars 2.0.0 and 2.0.1,
hashbrown
was updated from 0.4 to 0.5. This broke installation of my crate (cargo install abscissa
), since it was usinghashbrown
v0.4.Some options I can think of:
hashbrown
(e.g.pub use hashbrown
in the crate root) orhashbrown::HashMap
so I don't have to depend on thehashbrown
cratehashbrown::HashMap
in a newtypestd::collections::HashMap
asstd
is switching tohashbrown
anywayThe text was updated successfully, but these errors were encountered: