Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump MSRV to 1.56 and update to the 2021 edition #1098

Merged
merged 3 commits into from Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clippy.toml
@@ -1 +1 @@
msrv = "1.54"
msrv = "1.56"
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Expand Up @@ -88,16 +88,16 @@ jobs:
command: test
args: --all --all-features --all-targets

# some examples doesn't support 1.54 (such as async-graphql)
# so we only test axum itself on 1.54
# some examples doesn't support 1.56 (such as async-graphql)
# so we only test axum itself on 1.56
test-msrv:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.54
toolchain: 1.56
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
Expand All @@ -110,7 +110,7 @@ jobs:
-p axum-extra
-p axum-core
--all-features --all-targets
# the compiler errors are different on 1.54 which makes
# the compiler errors are different on 1.56 which makes
# the trybuild tests in axum-macros fail, so just run the doc
# tests
- name: Run axum-macros doc tests
Expand Down
4 changes: 3 additions & 1 deletion axum-core/CHANGELOG.md
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# Unreleased

- None.
- **change:** axum's MSRV is now 1.56 ([#1098])

[#1098]: https://github.com/tokio-rs/axum/pull/1098

# 0.2.5 (08. June, 2022)

Expand Down
2 changes: 1 addition & 1 deletion axum-core/Cargo.toml
@@ -1,7 +1,7 @@
[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Core types and traits for axum"
edition = "2018"
edition = "2021"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["http", "web", "framework"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion axum-core/README.md
Expand Up @@ -14,7 +14,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in

## Minimum supported Rust version

axum-core's MSRV is 1.54.
axum-core's MSRV is 1.56.

## Getting Help

Expand Down
4 changes: 3 additions & 1 deletion axum-extra/CHANGELOG.md
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning].

# Unreleased

- None.
- **change:** axum's MSRV is now 1.56 ([#1098])

[#1098]: https://github.com/tokio-rs/axum/pull/1098

# 0.3.4 (08. June, 2022)

Expand Down
2 changes: 1 addition & 1 deletion axum-extra/Cargo.toml
@@ -1,7 +1,7 @@
[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Extra utilities for axum"
edition = "2018"
edition = "2021"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["http", "web", "framework"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion axum-extra/README.md
Expand Up @@ -14,7 +14,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in

## Minimum supported Rust version

axum-extra's MSRV is 1.54.
axum-extra's MSRV is 1.56.

## Getting Help

Expand Down
4 changes: 3 additions & 1 deletion axum-macros/CHANGELOG.md
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# Unreleased

- None.
- **change:** axum's MSRV is now 1.56 ([#1098])

[#1098]: https://github.com/tokio-rs/axum/pull/1098

# 0.2.2 (18. May, 2022)

Expand Down
2 changes: 1 addition & 1 deletion axum-macros/Cargo.toml
@@ -1,7 +1,7 @@
[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Macros for axum"
edition = "2018"
edition = "2021"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["axum"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion axum-macros/README.md
Expand Up @@ -14,7 +14,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in

## Minimum supported Rust version

axum-macros's MSRV is 1.54.
axum-macros's MSRV is 1.56.

## Getting Help

Expand Down
4 changes: 3 additions & 1 deletion axum/CHANGELOG.md
Expand Up @@ -9,8 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- **added:** Support resolving host name via `Forwarded` header in `Host`
extractor ([#1078])
- **change:** axum's MSRV is now 1.56 ([#1098])

[#1078]: https://github.com/tokio-rs/axum/pull/1078
[#1098]: https://github.com/tokio-rs/axum/pull/1098

# 0.5.7 (08. June, 2022)

Expand Down Expand Up @@ -392,7 +394,7 @@ Yanked, as it contained an accidental breaking change.
`Router`.
- **added:** Add `Handler::into_make_service_with_connect_info` for serving a
handler without a `Router`, and storing info about the incoming connection.
- **breaking:** axum's minimum supported rust version is now 1.54
- **breaking:** axum's minimum supported rust version is now 1.56
- Routing:
- Big internal refactoring of routing leading to several improvements ([#363])
- **added:** Wildcard routes like `.route("/api/users/*rest", service)` are now supported.
Expand Down
2 changes: 1 addition & 1 deletion axum/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "axum"
version = "0.5.7"
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Web framework that focuses on ergonomics and modularity"
edition = "2018"
edition = "2021"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["http", "web", "framework"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion axum/README.md
Expand Up @@ -111,7 +111,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in

## Minimum supported Rust version

axum's MSRV is 1.54.
axum's MSRV is 1.56.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion axum/src/routing/strip_prefix.rs
Expand Up @@ -138,7 +138,7 @@ where
let a = a.map(Some).chain(std::iter::repeat_with(|| None));
let b = b.map(Some).chain(std::iter::repeat_with(|| None));
a.zip(b)
// use `map_while` when its stable in our MSRV
// use `map_while` when its stable in our MSRV (1.57)
.take_while(|(a, b)| a.is_some() || b.is_some())
.filter_map(|(a, b)| match (a, b) {
(Some(a), Some(b)) => Some(Item::Both(a, b)),
Expand Down
2 changes: 1 addition & 1 deletion examples/async-graphql/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-async-graphql"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-chat"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
@@ -1,7 +1,7 @@
[package]
name = "example-consume-body-in-extractor-or-middleware"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/cors/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-cors"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/customize-extractor-error/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-customize-extractor-error"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/customize-path-rejection/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-customize-path-rejection"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
@@ -1,7 +1,7 @@
[package]
name = "example-error-handling-and-dependency-injection"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/form/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-form"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/global-404-handler/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-global-404-handler"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/graceful-shutdown/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-graceful-shutdown"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-hello-world"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/http-proxy/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-http-proxy"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/jwt/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-jwt"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/key-value-store/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-key-value-store"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/low-level-rustls/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-low-level-rustls"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/multipart-form/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-multipart-form"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/oauth/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-oauth"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/print-request-response/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-print-request-response"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/prometheus-metrics/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-prometheus-metrics"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/query-params-with-empty-strings/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-query-params-with-empty-strings"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/readme/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-readme"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/rest-grpc-multiplex/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-rest-grpc-multiplex"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/reverse-proxy/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-reverse-proxy"
version = "0.1.0"
edition = "2018"
edition = "2021"

[dependencies]
axum = { path = "../../axum" }
Expand Down
2 changes: 1 addition & 1 deletion examples/routes-and-handlers-close-together/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-routes-and-handlers-close-together"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/sessions/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-sessions"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/sqlx-postgres/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "example-sqlx-postgres"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down