Registry / web-framework / axum-macros

axum-macros

JSON →
library0.5.1rscratesunverified

Macros for axum, providing procedural macros for routing and handlers.

# Cargo.toml [dependencies] axum-macros = "0.5.1"
INSTALL
IMPORT
SIG · AXUM-MACROS
A
axum-macros
web-frameworkrustv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

debug_handler
use axum_macros;

Uses the debug_handler macro to provide better error messages for axum handlers.

use axum_macros::debug_handler; #[debug_handler] async fn handler() -> &'static str { "Hello, World!" }
Debug
Known issues
gotchaRequires axum as a dependency and a compatible async runtime (e.g., tokio).
fix
Add axum and tokio to Cargo.toml, and ensure an async runtime is used.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
axum-macros — cargo add axum-macros · libregistry