Skip to content

Upgrade phf and phf_codegen to 0.13.1#124

Merged
danielparks merged 1 commit intodanielparks:mainfrom
MarkusPettersson98:bump-phf
Apr 13, 2026
Merged

Upgrade phf and phf_codegen to 0.13.1#124
danielparks merged 1 commit intodanielparks:mainfrom
MarkusPettersson98:bump-phf

Conversation

@MarkusPettersson98
Copy link
Copy Markdown
Contributor

RUSTSEC-2026-0097 points out that rand 0.8.5 is potentially unsound. No fix has been backported to rand 0.8, so I imagine most projects want to move off of rand 0.8 completely. This PR upgrades the dependencies of htmlize which 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 :)

@danielparks
Copy link
Copy Markdown
Owner

Thanks for the PR! I'll cut a release shortly.

@danielparks danielparks merged commit 095bb43 into danielparks:main Apr 13, 2026
6 checks passed
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
@danielparks danielparks mentioned this pull request Apr 13, 2026
@danielparks
Copy link
Copy Markdown
Owner

Release 1.1.0 is out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants