mirror of
https://github.com/tokio-rs/axum.git
synced 2026-02-06 11:17:48 +00:00
Update minimum Rust version to 1.78 (#3412)
This commit is contained in:
parent
c1ff1539e3
commit
25549f0ba2
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@ -2,7 +2,7 @@ name: CI
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
MSRV: '1.75'
|
||||
MSRV: '1.78'
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -327,7 +327,6 @@ dependencies = [
|
||||
"quickcheck",
|
||||
"quickcheck_macros",
|
||||
"reqwest 0.12.12",
|
||||
"rustversion",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"serde_path_to_error",
|
||||
|
||||
@ -7,7 +7,7 @@ exclude = ["examples/async-graphql"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
rust-version = "1.75"
|
||||
rust-version = "1.78"
|
||||
|
||||
[workspace.lints.rust]
|
||||
unsafe_code = "forbid"
|
||||
|
||||
@ -47,11 +47,8 @@ mod private {
|
||||
/// See [`axum::extract`] for more general docs about extractors.
|
||||
///
|
||||
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
|
||||
#[rustversion::attr(
|
||||
since(1.78),
|
||||
diagnostic::on_unimplemented(
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
|
||||
)
|
||||
#[diagnostic::on_unimplemented(
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details"
|
||||
)]
|
||||
pub trait FromRequestParts<S>: Sized {
|
||||
/// If the extractor fails it'll use this "rejection" type. A rejection is
|
||||
@ -76,11 +73,8 @@ pub trait FromRequestParts<S>: Sized {
|
||||
/// See [`axum::extract`] for more general docs about extractors.
|
||||
///
|
||||
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
|
||||
#[rustversion::attr(
|
||||
since(1.78),
|
||||
diagnostic::on_unimplemented(
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
|
||||
)
|
||||
#[diagnostic::on_unimplemented(
|
||||
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details"
|
||||
)]
|
||||
pub trait FromRequest<S, M = private::ViaRequest>: Sized {
|
||||
/// If the extractor fails it'll use this "rejection" type. A rejection is
|
||||
|
||||
@ -62,7 +62,6 @@ memchr = "2.4.1"
|
||||
mime = "0.3.16"
|
||||
percent-encoding = "2.1"
|
||||
pin-project-lite = "0.2.7"
|
||||
rustversion = "1.0.9"
|
||||
serde = "1.0"
|
||||
sync_wrapper = "1.0.0"
|
||||
tower = { version = "0.5.2", default-features = false, features = ["util"] }
|
||||
|
||||
@ -104,7 +104,7 @@ This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in
|
||||
|
||||
## Minimum supported Rust version
|
||||
|
||||
axum's MSRV is 1.75.
|
||||
axum's MSRV is 1.78.
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@ -125,11 +125,8 @@ pub use self::service::HandlerService;
|
||||
/// )));
|
||||
/// # let _: Router = app;
|
||||
/// ```
|
||||
#[rustversion::attr(
|
||||
since(1.78),
|
||||
diagnostic::on_unimplemented(
|
||||
note = "Consider using `#[axum::debug_handler]` to improve the error message"
|
||||
)
|
||||
#[diagnostic::on_unimplemented(
|
||||
note = "Consider using `#[axum::debug_handler]` to improve the error message"
|
||||
)]
|
||||
pub trait Handler<T, S>: Clone + Send + Sync + Sized + 'static {
|
||||
/// The type of future calling this handler returns.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user