Skip to content

Commit

Permalink
chore(build): bump MSRV to 1.81.0 (#8931)
Browse files Browse the repository at this point in the history
As noted in #8929, many Oxc crates won't compile at present with our MSRV of 1.80.0, due to the liberal use of `#[expect]` attribute, which wasn't stabilized until 1.81.0.

It becomes a lint error in 1.81.0 to use `#[allow]`, so it'd seem to me pretty pointless to convert all the `#[expect]` attrs to `#[allow]` to honour our MSRV now, when we'll have to change them back to `#[expect]` again shortly.

So I propose that we bump the MSRV to 1.81.0 early instead. Next minor version of Rust is out in 2 weeks anyway.
  • Loading branch information
overlookmotel authored and Dunqing committed Feb 10, 2025
1 parent c5bfb8a commit 2abe9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage = "https://oxc.rs"
keywords = ["JavaScript", "TypeScript", "linter", "minifier", "parser"]
license = "MIT"
repository = "https://github.com/oxc-project/oxc"
rust-version = "1.80" # Support last 5 minor versions.
rust-version = "1.81.0" # Support last 4 minor versions.
description = "A collection of JavaScript tools written in Rust."

# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
Expand Down

0 comments on commit 2abe9aa

Please sign in to comment.