Skip to content

Conversation

nicoburns
Copy link
Contributor

@nicoburns nicoburns commented Jun 30, 2025

This is an old/unmaintained crate (no commit or release since 2017) which doesn't provide much value today due to improvements to the language / stdlib:

  • Replace format_if macro with manual if..else (which IMO is clearer and is no longer)
  • Replace test_eq macro with plain test functions
  • Replace unwrap_or_return macro with copy of macro which already existed in html5ever (duplicate to xml5ever)
  • Update time! macros in xml5ever to match one in html5ever. These macros were slightly different but I believe equivalent in functionality (looks like the html5ever version was created before Instant::as_nanos() existed in the stdlib)

- Use xml5ever version of time! macro
- Replace mac::unwrap_or_return with version from html5ever
Signed-off-by: Nico Burns <[email protected]>
@nicoburns nicoburns added this pull request to the merge queue Jun 30, 2025
@nicoburns nicoburns added dependencies Pull requests that update a dependency file V-non-breaking A non-breaking change labels Jun 30, 2025
Merged via the queue into servo:main with commit f16dd94 Jun 30, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file V-non-breaking A non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants