From 49fff47111bf95847b31668f2e17cf9aad85e748 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Mon, 31 Jan 2022 13:26:12 -0800 Subject: [PATCH] chore: increase MSRV to 1.49. (#4457) Rust 1.49 was released on December 31, 2020, which meets our MSRV policy of a minimum of 6 months. --- .clippy.toml | 2 +- .github/workflows/ci.yml | 2 +- README.md | 6 +++--- tokio-macros/Cargo.toml | 2 +- tokio-stream/Cargo.toml | 2 +- tokio-test/Cargo.toml | 2 +- tokio-util/Cargo.toml | 2 +- tokio/Cargo.toml | 2 +- tokio/README.md | 6 +++--- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index eb66960ac8d..7e3a473ba35 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1 +1 @@ -msrv = "1.46" +msrv = "1.49" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1eac009b53d..629e396c973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ env: rust_stable: stable rust_nightly: nightly-2022-01-12 rust_clippy: 1.52.0 - rust_min: 1.46.0 + rust_min: 1.49.0 defaults: run: diff --git a/README.md b/README.md index 4bd3fbe96e6..877f84283d4 100644 --- a/README.md +++ b/README.md @@ -163,9 +163,9 @@ several other libraries, including: ## Supported Rust Versions -Tokio is built against the latest stable release. The minimum supported version -is 1.46. The current Tokio version is not guaranteed to build on Rust versions -earlier than the minimum supported version. +Tokio will keep a rolling MSRV (minimum supported rust version) policy of **at +least** 6 months. When increasing the MSRV, the new Rust version must have been +released at least six months ago. The current MSRV is 1.49.0. ## Release schedule diff --git a/tokio-macros/Cargo.toml b/tokio-macros/Cargo.toml index d9b05795bf9..b17844f3798 100644 --- a/tokio-macros/Cargo.toml +++ b/tokio-macros/Cargo.toml @@ -6,7 +6,7 @@ name = "tokio-macros" # - Create "tokio-macros-1.0.x" git tag. version = "1.7.0" edition = "2018" -rust-version = "1.46" +rust-version = "1.49" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" diff --git a/tokio-stream/Cargo.toml b/tokio-stream/Cargo.toml index 91a86bbbba5..39041448fff 100644 --- a/tokio-stream/Cargo.toml +++ b/tokio-stream/Cargo.toml @@ -6,7 +6,7 @@ name = "tokio-stream" # - Create "tokio-stream-0.1.x" git tag. version = "0.1.8" edition = "2018" -rust-version = "1.46" +rust-version = "1.49" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" diff --git a/tokio-test/Cargo.toml b/tokio-test/Cargo.toml index 16d688b6ed5..e889dcec85a 100644 --- a/tokio-test/Cargo.toml +++ b/tokio-test/Cargo.toml @@ -6,7 +6,7 @@ name = "tokio-test" # - Create "tokio-test-0.4.x" git tag. version = "0.4.2" edition = "2018" -rust-version = "1.46" +rust-version = "1.49" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index 31884938a67..8fdd8584952 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -6,7 +6,7 @@ name = "tokio-util" # - Create "tokio-util-0.7.x" git tag. version = "0.7.0" edition = "2018" -rust-version = "1.46" +rust-version = "1.49" authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 601fc2af7f2..38a9a6d4667 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -8,7 +8,7 @@ name = "tokio" # - Create "v1.0.x" git tag. version = "1.16.1" edition = "2018" -rust-version = "1.46" +rust-version = "1.49" authors = ["Tokio Contributors "] license = "MIT" readme = "README.md" diff --git a/tokio/README.md b/tokio/README.md index 4bd3fbe96e6..877f84283d4 100644 --- a/tokio/README.md +++ b/tokio/README.md @@ -163,9 +163,9 @@ several other libraries, including: ## Supported Rust Versions -Tokio is built against the latest stable release. The minimum supported version -is 1.46. The current Tokio version is not guaranteed to build on Rust versions -earlier than the minimum supported version. +Tokio will keep a rolling MSRV (minimum supported rust version) policy of **at +least** 6 months. When increasing the MSRV, the new Rust version must have been +released at least six months ago. The current MSRV is 1.49.0. ## Release schedule