Skip to content

Commit ff03186

Browse files
authored
Update minimum Rust version to 1.78 (#3412)
1 parent 3bd445d commit ff03186

File tree

8 files changed

+11
-20
lines changed

8 files changed

+11
-20
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
env:
44
CARGO_TERM_COLOR: always
5-
MSRV: '1.75'
5+
MSRV: '1.78'
66

77
on:
88
push:

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude = ["examples/async-graphql"]
77
resolver = "2"
88

99
[workspace.package]
10-
rust-version = "1.75"
10+
rust-version = "1.78"
1111

1212
[workspace.lints.rust]
1313
unsafe_code = "forbid"

axum-core/src/extract/mod.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ mod private {
4747
/// See [`axum::extract`] for more general docs about extractors.
4848
///
4949
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
50-
#[rustversion::attr(
51-
since(1.78),
52-
diagnostic::on_unimplemented(
53-
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
54-
)
50+
#[diagnostic::on_unimplemented(
51+
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details"
5552
)]
5653
pub trait FromRequestParts<S>: Sized {
5754
/// If the extractor fails it'll use this "rejection" type. A rejection is
@@ -76,11 +73,8 @@ pub trait FromRequestParts<S>: Sized {
7673
/// See [`axum::extract`] for more general docs about extractors.
7774
///
7875
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
79-
#[rustversion::attr(
80-
since(1.78),
81-
diagnostic::on_unimplemented(
82-
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
83-
)
76+
#[diagnostic::on_unimplemented(
77+
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details"
8478
)]
8579
pub trait FromRequest<S, M = private::ViaRequest>: Sized {
8680
/// If the extractor fails it'll use this "rejection" type. A rejection is

axum/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- **added:** Implement `OptionalFromRequest` for `Multipart` ([#3220])
1414
- **changed:** `serve` has an additional generic argument and can now work with any response body
1515
type, not just `axum::body::Body` ([#3205])
16+
- **change:** Update minimum rust version to 1.78 ([#3412])
1617

1718
[#3158]: https://github.com/tokio-rs/axum/pull/3158
1819
[#3261]: https://github.com/tokio-rs/axum/pull/3261
1920
[#3205]: https://github.com/tokio-rs/axum/pull/3205
2021
[#3220]: https://github.com/tokio-rs/axum/pull/3220
22+
[#3412]: https://github.com/tokio-rs/axum/pull/3412
2123

2224
# 0.8.4
2325

axum/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ memchr = "2.4.1"
100100
mime = "0.3.16"
101101
percent-encoding = "2.1"
102102
pin-project-lite = "0.2.7"
103-
rustversion = "1.0.9"
104103
serde = "1.0"
105104
sync_wrapper = "1.0.0"
106105
tower = { version = "0.5.2", default-features = false, features = ["util"] }

axum/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in
111111

112112
## Minimum supported Rust version
113113

114-
axum's MSRV is 1.75.
114+
axum's MSRV is 1.78.
115115

116116
## Examples
117117

axum/src/handler/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,8 @@ pub use self::service::HandlerService;
125125
/// )));
126126
/// # let _: Router = app;
127127
/// ```
128-
#[rustversion::attr(
129-
since(1.78),
130-
diagnostic::on_unimplemented(
131-
note = "Consider using `#[axum::debug_handler]` to improve the error message"
132-
)
128+
#[diagnostic::on_unimplemented(
129+
note = "Consider using `#[axum::debug_handler]` to improve the error message"
133130
)]
134131
pub trait Handler<T, S>: Clone + Send + Sync + Sized + 'static {
135132
/// The type of future calling this handler returns.

0 commit comments

Comments
 (0)