axum/axum-macros/tests/pass
David Pedersen e4c389c94d
Add axum-macros crate with #[derive(FromRequest)] (#718)
* initial working impl

* support `#[from_request(via(...))]`

* support extracting the whole thing at once

* rely on type inference

* fix footgun

* fix typo

* generate rejection enums

* move tests to trybuild

* minor clean up

* docs

* Support multiple generic extractors with same "via" type

* support `Result` as well

* Update axum-macros/src/from_request.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>

* Add `#[automatically_derived]`

* remove needless `#[derive(Debug)]` on macro types

* Fix error messages that different for some reason

* Update axum-macros/src/lib.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>

* add more `#[automatically_derived]`

* support same types in tuple structs

* update docs

* prep axum-macros for release

* address review feedback

* Update axum-macros/src/lib.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>

* Update axum-macros/src/lib.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>

* Update known limitation

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2022-01-25 15:05:50 +01:00
..
container.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
named.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
named_via.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
tuple.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
tuple_same_type_twice.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
tuple_same_type_twice_via.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
tuple_via.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00
unit.rs Add axum-macros crate with #[derive(FromRequest)] (#718) 2022-01-25 15:05:50 +01:00