Skip to content

Commit

Permalink
msrv: bump to Rust 1.60
Browse files Browse the repository at this point in the history
And switch to Rust 2011 and 'resolver = 2'.

The idea here is to overhaul bstr features to make use of the new
resolver in Cargo. But this requires Rust 1.60.

This does make the MSRV a bit newer than I would hope, but it's at least
a few releases old at this point. And if I don't do this now, then I
either have to accept a sub-optimal feature setup for 1.0 forever, or
delay 1.0 until Rust 1.60 is "old enough."

Instead, we can just bump to Rust 1.60 now. For people too squeamish to
move to such a new Rust, they can stick to bstr 0.2.0 until they're
ready to move on.

Ref: #40 (comment)
  • Loading branch information
BurntSushi committed Sep 2, 2022
1 parent 2330bcf commit 7a4782a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
include:
- build: pinned
os: ubuntu-18.04
rust: 1.48.0
rust: 1.60.0
- build: stable
os: ubuntu-18.04
rust: stable
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ keywords = ["string", "str", "byte", "bytes", "text"]
license = "MIT OR Apache-2.0"
categories = ["text-processing", "encoding"]
exclude = ["/.github"]
edition = "2018"
edition = "2021"
resolver = "2"

[workspace]
members = ["bench"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ and Unicode support.

### Minimum Rust version policy

This crate's minimum supported `rustc` version (MSRV) is `1.48.0`.
This crate's minimum supported `rustc` version (MSRV) is `1.60.0`.

In general, this crate will be conservative with respect to the minimum
supported version of Rust. MSRV may be bumped in minor version releases.
Expand Down

0 comments on commit 7a4782a

Please sign in to comment.