mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
docs
This commit is contained in:
@@ -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"] }
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user