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

This commit is contained in:
David Pedersen 2022-06-17 20:11:35 +02:00 committed by GitHub
parent fd70f81c46
commit 93251fa203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 65 additions and 57 deletions

View file

@ -1 +1 @@
msrv = "1.54"
msrv = "1.56"

View file

@ -88,8 +88,8 @@ 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
@ -97,7 +97,7 @@ jobs:
- 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
@ -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

View file

@ -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)

View file

@ -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"

View file

@ -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

View file

@ -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)

View file

@ -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"

View file

@ -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

View file

@ -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)

View file

@ -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"

View file

@ -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

View file

@ -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)
@ -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.

View file

@ -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"

View file

@ -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

View file

@ -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)),

View file

@ -1,7 +1,7 @@
[package]
name = "example-async-graphql"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-chat"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

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

View file

@ -1,7 +1,7 @@
[package]
name = "example-cors"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-customize-extractor-error"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-customize-path-rejection"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

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

View file

@ -1,7 +1,7 @@
[package]
name = "example-form"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-global-404-handler"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-graceful-shutdown"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-hello-world"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-http-proxy"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-jwt"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-key-value-store"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-low-level-rustls"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-multipart-form"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-oauth"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-print-request-response"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-prometheus-metrics"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-query-params-with-empty-strings"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-readme"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-rest-grpc-multiplex"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-reverse-proxy"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
axum = { path = "../../axum" }

View file

@ -1,7 +1,7 @@
[package]
name = "example-routes-and-handlers-close-together"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-sessions"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-sqlx-postgres"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-sse"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-static-file-server"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-stream-to-file"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-templates"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-testing"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-tls-rustls"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-todos"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-tokio-postgres"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-tracing-aka-logging"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-unix-domain-socket"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,5 +1,5 @@
[package]
edition = "2018"
edition = "2021"
name = "example-validator"
publish = false
version = "0.1.0"

View file

@ -1,7 +1,7 @@
[package]
name = "example-versioning"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "example-websockets"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]