diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d1c3653da..94cbedd3e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,7 +15,7 @@ jobs: # failure only occurs on a particular version. fail-fast: false matrix: - rust: [stable, 1.46.0] + rust: [stable, 1.49.0] steps: - uses: actions/checkout@master - uses: actions-rs/toolchain@v1 @@ -68,7 +68,7 @@ jobs: # failure only occurs on a particular version. fail-fast: false matrix: - rust: [stable, beta, nightly, 1.46.0] + rust: [stable, beta, nightly, 1.49.0] steps: - uses: actions/checkout@master - uses: actions-rs/toolchain@v1 diff --git a/README.md b/README.md index 401d0de15..31a2357a9 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,11 @@ Tower aims to make it as easy as possible to build robust networking clients and servers. It is protocol agnostic, but is designed around a request / response pattern. If your protocol is entirely stream based, Tower may not be a good fit. -## Minimum supported Rust version +## Supported Rust Versions -tower's MSRV is 1.46. +Tower 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. ## Getting Started diff --git a/tower/Cargo.toml b/tower/Cargo.toml index 18fc694d0..a8f4d161d 100644 --- a/tower/Cargo.toml +++ b/tower/Cargo.toml @@ -20,6 +20,7 @@ clients and servers. categories = ["asynchronous", "network-programming"] keywords = ["io", "async", "non-blocking", "futures", "service"] edition = "2018" +rust-version = "1.49.0" [features] default = ["log"] diff --git a/tower/README.md b/tower/README.md index e2f877d90..d8f6f4155 100644 --- a/tower/README.md +++ b/tower/README.md @@ -172,6 +172,13 @@ Tower. [`retry`]: https://docs.rs/tower/latest/tower/retry [open a PR]: https://github.com/tower-rs/tower/compare + +## Supported Rust Versions + +Tower 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. + ## License This project is licensed under the [MIT license](LICENSE). diff --git a/tower/src/lib.rs b/tower/src/lib.rs index c7aa3c0be..c7f72cf99 100644 --- a/tower/src/lib.rs +++ b/tower/src/lib.rs @@ -140,6 +140,13 @@ //! See [here](#modules) for a complete list of all middleware provided by //! Tower. //! +//! +//! #! Supported Rust Versions +//! +//! Tower 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. +//! //! [`Service`]: crate::Service //! [`Layer`]: crate::Layer //! [timeouts]: crate::timeout