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
+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)