mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-16 11:51:54 +01:00
6703f8634c
Co-authored-by: Jonas Platte <jplatte+git@posteo.de> Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
10 lines
215 B
Rust
10 lines
215 B
Rust
use axum_macros::debug_handler;
|
|
use axum::{extract::State, extract::Request};
|
|
|
|
#[debug_handler(state = AppState)]
|
|
async fn handler(_: State<AppState>, _: Request) {}
|
|
|
|
#[derive(Clone)]
|
|
struct AppState;
|
|
|
|
fn main() {}
|