Update Cargo.lock and examples/Cargo.lock (#3643)

This commit is contained in:
Jonas Platte 2026-02-03 23:38:36 +01:00 committed by GitHub
parent 7961711fc7
commit f8e0e6d025
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1149 additions and 1378 deletions

952
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
error: Cannot return tuples with more than 17 elements error: Cannot return tuples with more than 17 elements
--> tests/debug_handler/fail/output_tuple_too_many.rs:4:20 --> tests/debug_handler/fail/output_tuple_too_many.rs:4:20
| |
4 | async fn handler() -> ( 4 | async fn handler() -> (
| ____________________^ | ____________________^
5 | | axum::http::StatusCode, 5 | | axum::http::StatusCode,

View File

@ -1,6 +1,6 @@
error: Handlers cannot take more than 16 arguments. Use `(a, b): (ExtractorA, ExtractorA)` to further nest extractors error: Handlers cannot take more than 16 arguments. Use `(a, b): (ExtractorA, ExtractorA)` to further nest extractors
--> tests/debug_handler/fail/too_many_extractors.rs:6:5 --> tests/debug_handler/fail/too_many_extractors.rs:6:5
| |
6 | / _e1: Uri, 6 | / _e1: Uri,
7 | | _e2: Uri, 7 | | _e2: Uri,
8 | | _e3: Uri, 8 | | _e3: Uri,

View File

@ -5,20 +5,20 @@ error: #[derive(FromRequest)] only supports generics when used with #[from_reque
| ^ | ^
error[E0277]: the trait bound `fn(Extractor<()>) -> impl Future<Output = ()> {foo}: Handler<_, _>` is not satisfied error[E0277]: the trait bound `fn(Extractor<()>) -> impl Future<Output = ()> {foo}: Handler<_, _>` is not satisfied
--> tests/from_request/fail/generic_without_via.rs:10:44 --> tests/from_request/fail/generic_without_via.rs:10:44
| |
10 | _ = Router::<()>::new().route("/", get(foo)); 10 | _ = Router::<()>::new().route("/", get(foo));
| --- ^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Extractor<()>) -> impl Future<Output = ()> {foo}` | --- ^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Extractor<()>) -> impl Future<Output = ()> {foo}`
| | | |
| required by a bound introduced by this call | required by a bound introduced by this call
| |
= note: Consider using `#[axum::debug_handler]` to improve the error message = note: Consider using `#[axum::debug_handler]` to improve the error message
note: required by a bound in `axum::routing::get` note: required by a bound in `axum::routing::get`
--> $WORKSPACE/axum/src/routing/method_routing.rs --> $WORKSPACE/axum/src/routing/method_routing.rs
| |
| top_level_handler_fn!(get, GET); | top_level_handler_fn!(get, GET);
| ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^
| | | | | |
| | required by a bound in this function | | required by a bound in this function
| required by this bound in `get` | required by this bound in `get`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -5,20 +5,20 @@ error: #[derive(FromRequest)] only supports generics when used with #[from_reque
| ^ | ^
error[E0277]: the trait bound `fn(Extractor<()>) -> impl Future<Output = ()> {foo}: Handler<_, _>` is not satisfied error[E0277]: the trait bound `fn(Extractor<()>) -> impl Future<Output = ()> {foo}: Handler<_, _>` is not satisfied
--> tests/from_request/fail/generic_without_via_rejection.rs:11:44 --> tests/from_request/fail/generic_without_via_rejection.rs:11:44
| |
11 | _ = Router::<()>::new().route("/", get(foo)); 11 | _ = Router::<()>::new().route("/", get(foo));
| --- ^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Extractor<()>) -> impl Future<Output = ()> {foo}` | --- ^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Extractor<()>) -> impl Future<Output = ()> {foo}`
| | | |
| required by a bound introduced by this call | required by a bound introduced by this call
| |
= note: Consider using `#[axum::debug_handler]` to improve the error message = note: Consider using `#[axum::debug_handler]` to improve the error message
note: required by a bound in `axum::routing::get` note: required by a bound in `axum::routing::get`
--> $WORKSPACE/axum/src/routing/method_routing.rs --> $WORKSPACE/axum/src/routing/method_routing.rs
| |
| top_level_handler_fn!(get, GET); | top_level_handler_fn!(get, GET);
| ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^
| | | | | |
| | required by a bound in this function | | required by a bound in this function
| required by this bound in `get` | required by this bound in `get`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -5,39 +5,39 @@ error: cannot use `rejection` without `via`
| ^^^^^^^^^ | ^^^^^^^^^
error[E0277]: the trait bound `fn(MyExtractor) -> impl Future<Output = ()> {handler}: Handler<_, _>` is not satisfied error[E0277]: the trait bound `fn(MyExtractor) -> impl Future<Output = ()> {handler}: Handler<_, _>` is not satisfied
--> tests/from_request/fail/override_rejection_on_enum_without_via.rs:10:50 --> tests/from_request/fail/override_rejection_on_enum_without_via.rs:10:50
| |
10 | let _: Router = Router::new().route("/", get(handler).post(handler_result)); 10 | let _: Router = Router::new().route("/", get(handler).post(handler_result));
| --- ^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(MyExtractor) -> impl Future<Output = ()> {handler}` | --- ^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(MyExtractor) -> impl Future<Output = ()> {handler}`
| | | |
| required by a bound introduced by this call | required by a bound introduced by this call
| |
= note: Consider using `#[axum::debug_handler]` to improve the error message = note: Consider using `#[axum::debug_handler]` to improve the error message
note: required by a bound in `axum::routing::get` note: required by a bound in `axum::routing::get`
--> $WORKSPACE/axum/src/routing/method_routing.rs --> $WORKSPACE/axum/src/routing/method_routing.rs
| |
| top_level_handler_fn!(get, GET); | top_level_handler_fn!(get, GET);
| ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^
| | | | | |
| | required by a bound in this function | | required by a bound in this function
| required by this bound in `get` | required by this bound in `get`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}: Handler<_, _>` is not satisfied error[E0277]: the trait bound `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}: Handler<_, _>` is not satisfied
--> tests/from_request/fail/override_rejection_on_enum_without_via.rs:10:64 --> tests/from_request/fail/override_rejection_on_enum_without_via.rs:10:64
| |
10 | let _: Router = Router::new().route("/", get(handler).post(handler_result)); 10 | let _: Router = Router::new().route("/", get(handler).post(handler_result));
| ---- ^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}` | ---- ^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}`
| | | |
| required by a bound introduced by this call | required by a bound introduced by this call
| |
= note: Consider using `#[axum::debug_handler]` to improve the error message = note: Consider using `#[axum::debug_handler]` to improve the error message
note: required by a bound in `MethodRouter::<S>::post` note: required by a bound in `MethodRouter::<S>::post`
--> $WORKSPACE/axum/src/routing/method_routing.rs --> $WORKSPACE/axum/src/routing/method_routing.rs
| |
| chained_handler_fn!(post, POST); | chained_handler_fn!(post, POST);
| ^^^^^^^^^^^^^^^^^^^^----^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^----^^^^^^^
| | | | | |
| | required by a bound in this associated function | | required by a bound in this associated function
| required by this bound in `MethodRouter::<S>::post` | required by this bound in `MethodRouter::<S>::post`
= note: this error originates in the macro `chained_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `chained_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)

1439
examples/Cargo.lock generated

File diff suppressed because it is too large Load Diff