27 stable releases

Uses new Rust 2024

2.1.2 Sep 26, 2025
2.0.16 Aug 16, 2025
2.0.12 Jul 30, 2025
2.0.0 Feb 23, 2025
0.17.1 Jun 17, 2024

#55 in Web programming

Download history 4947/week @ 2025-07-14 5046/week @ 2025-07-21 5914/week @ 2025-07-28 7369/week @ 2025-08-04 5090/week @ 2025-08-11 5142/week @ 2025-08-18 6040/week @ 2025-08-25 3996/week @ 2025-09-01 7791/week @ 2025-09-08 9004/week @ 2025-09-15 8018/week @ 2025-09-22 8482/week @ 2025-09-29 8429/week @ 2025-10-06 13644/week @ 2025-10-13 16235/week @ 2025-10-20 12742/week @ 2025-10-27

51,592 downloads per month
Used in 83 crates (via oxc_compat)

MIT license

250KB
4.5K SLoC

Crates.io Docs.rs

MIT licensed Build Status Code Coverage CodSpeed Badge Sponsors Discord chat

oxc-browserslist

Rust port of Browserslist, forked from browserslist-rs.

The original crate did not meet the criteria of oxc, the following changes are made:

  • reduced compilation speed from one minute to a few seconds
  • improved some runtime performance, e.g. improve sort method, precompute versions
  • removed all unnecessary, heavy or slow dependencies: ahash, chrono, either, indexmap, itertools, once_cell, string_cache
  • reduced binary size through data compression. 911K (this crate) vs 3.2M (original crate).

Usage

See docs.rs/oxc-browserslist.

Limitation

Only custom usage is not supported: > 0.5% in my stats or cover 99.5% in my stats.

Example

Inspect query result by running the example:

cargo run --example inspect -- <query>

You can also specify additional options, for example:

cargo run --example inspect -- --mobile-to-desktop 'last 2 versions, not dead'

Future Work (Pull Request Welcome)

  • nom can be replaced by a hand written parser to improve runtime and compilation speed
  • improve test coverage
  • improve compilation speed and reduce compiled binary size
  • improve runtime performance
    • all semver versions with their string representation can be precomputed and code generated, current code is calling parse and to_string on semver versions
    • add more benchmarks
    • see codspeed for current run performance

Sponsored By

My sponsors

Dependencies

~2.6–4MB
~78K SLoC