File tree Expand file tree Collapse file tree 8 files changed +11
-20
lines changed Expand file tree Collapse file tree 8 files changed +11
-20
lines changed Original file line number Diff line number Diff line change 2
2
3
3
env :
4
4
CARGO_TERM_COLOR : always
5
- MSRV : ' 1.75 '
5
+ MSRV : ' 1.78 '
6
6
7
7
on :
8
8
push :
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ exclude = ["examples/async-graphql"]
7
7
resolver = " 2"
8
8
9
9
[workspace .package ]
10
- rust-version = " 1.75 "
10
+ rust-version = " 1.78 "
11
11
12
12
[workspace .lints .rust ]
13
13
unsafe_code = " forbid"
Original file line number Diff line number Diff line change @@ -47,11 +47,8 @@ mod private {
47
47
/// See [`axum::extract`] for more general docs about extractors.
48
48
///
49
49
/// [`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. \n See `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. \n See `https://docs.rs/axum/0.8/axum/extract/index.html` for details"
55
52
) ]
56
53
pub trait FromRequestParts < S > : Sized {
57
54
/// If the extractor fails it'll use this "rejection" type. A rejection is
@@ -76,11 +73,8 @@ pub trait FromRequestParts<S>: Sized {
76
73
/// See [`axum::extract`] for more general docs about extractors.
77
74
///
78
75
/// [`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. \n See `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. \n See `https://docs.rs/axum/0.8/axum/extract/index.html` for details"
84
78
) ]
85
79
pub trait FromRequest < S , M = private:: ViaRequest > : Sized {
86
80
/// If the extractor fails it'll use this "rejection" type. A rejection is
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
- ** added:** Implement ` OptionalFromRequest ` for ` Multipart ` ([ #3220 ] )
14
14
- ** changed:** ` serve ` has an additional generic argument and can now work with any response body
15
15
type, not just ` axum::body::Body ` ([ #3205 ] )
16
+ - ** change:** Update minimum rust version to 1.78 ([ #3412 ] )
16
17
17
18
[ #3158 ] : https://github.com/tokio-rs/axum/pull/3158
18
19
[ #3261 ] : https://github.com/tokio-rs/axum/pull/3261
19
20
[ #3205 ] : https://github.com/tokio-rs/axum/pull/3205
20
21
[ #3220 ] : https://github.com/tokio-rs/axum/pull/3220
22
+ [ #3412 ] : https://github.com/tokio-rs/axum/pull/3412
21
23
22
24
# 0.8.4
23
25
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ memchr = "2.4.1"
100
100
mime = " 0.3.16"
101
101
percent-encoding = " 2.1"
102
102
pin-project-lite = " 0.2.7"
103
- rustversion = " 1.0.9"
104
103
serde = " 1.0"
105
104
sync_wrapper = " 1.0.0"
106
105
tower = { version = " 0.5.2" , default-features = false , features = [" util" ] }
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in
111
111
112
112
## Minimum supported Rust version
113
113
114
- axum's MSRV is 1.75 .
114
+ axum's MSRV is 1.78 .
115
115
116
116
## Examples
117
117
Original file line number Diff line number Diff line change @@ -125,11 +125,8 @@ pub use self::service::HandlerService;
125
125
/// )));
126
126
/// # let _: Router = app;
127
127
/// ```
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"
133
130
) ]
134
131
pub trait Handler < T , S > : Clone + Send + Sync + Sized + ' static {
135
132
/// The type of future calling this handler returns.
You can’t perform that action at this time.
0 commit comments