This commit is contained in:
David Pedersen
2022-02-13 22:08:49 +01:00
parent 1b7326e9de
commit 46f85fd9ba
4 changed files with 126 additions and 20 deletions
+1
View File
@@ -21,6 +21,7 @@ syn = { version = "1.0", features = ["full"] }
[dev-dependencies]
axum = { path = "../axum", version = "0.4", features = ["headers"] }
axum-extra = { path = "../axum-extra", version = "0.1" }
rustversion = "1.0"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
+3 -1
View File
@@ -386,7 +386,9 @@ pub fn debug_handler(_attr: TokenStream, input: TokenStream) -> TokenStream {
return expand_attr_with(_attr, input, debug_handler::expand);
}
/// TODO
/// Derive an implementation of [`axum_extra::routing::TypedPath`].
///
/// See that trait for more details.
#[proc_macro_derive(TypedPath, attributes(typed_path))]
pub fn derive_typed_path(input: TokenStream) -> TokenStream {
expand_with(input, typed_path::expand)