Upgrade phf and phf_codegen to 0.13.1#124
Merged
danielparks merged 1 commit intodanielparks:mainfrom Apr 13, 2026
Merged
Conversation
3 tasks
Owner
|
Thanks for the PR! I'll cut a release shortly. |
danielparks
added a commit
that referenced
this pull request
Apr 13, 2026
* Major performance improvements when unescaping text in many cases (for both the `unescape` and `unescape_fast` features). * Major improvements in build time for the `unescape_fast` features (went from 8 seconds to 3 seconds on my laptop). * Add `BARE_ENTITY_MAX_LENGTH` constant that contains the length of the longest entity without a semicolon (enabled with feature `entities`). * Clarify examples in documentation and README. * Fix a few spelling mistakes in documentation. ### Security * [RUSTSEC-2026-0097]: the [rand] crate was unsound in certain circumstances. Htmlize depends on [rand] via [phf] and couldn’t trigger the unsoundness on its own. Thanks to [MarkusPettersson98] for the [PR][#124]! [RUSTSEC-2026-0097]: https://rustsec.org/advisories/RUSTSEC-2026-0097 [rand]: https://crates.io/crates/rand [phf]: https://crates.io/crates/phf [MarkusPettersson98]: https://github.com/MarkusPettersson98 [#124]: #124
Merged
Owner
|
Release 1.1.0 is out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RUSTSEC-2026-0097 points out that
rand 0.8.5is potentially unsound. No fix has been backported torand 0.8, so I imagine most projects want to move off ofrand 0.8completely. This PR upgrades the dependencies ofhtmlizewhich transitively pulls in rand 0.8.5.I've ran the tests locally, and they seem fine. Let me know if anything else needs to be done :)