mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-20 00:00:11 +02:00
Co-authored-by: Jonas Platte <[email protected]> Co-authored-by: Michael Scofield <[email protected]>
11 lines
215 B
Rust
11 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() {}
|