Skip to content

Remove dependency on mac crate #639

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

Merged
merged 6 commits into from
Jun 30, 2025
Merged

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