rust-doctor · Framework
axum-handler-not-async
Flags non-async handler functions in axum. Web framework handlers run on the async runtime and must not block.
- Severity
- warning
- Confidence
- medium
- Analyzer
- syn-ast
- Default policy
- Enabled
Tags
Framework requirements
axum >=0.7,<0.9
Limitations
- Syntactic analysis does not have rustc name resolution or inferred type information.
Remediation
Make the handler `async fn` and use async I/O operations.
Fix capability: guidance