Rust Rules
Unfault includes 45 rules for Rust, covering memory safety, async patterns, and popular frameworks like Axum, Tokio, and SQLx.
Core Rules (35 rules)
Section titled “Core Rules (35 rules)”Framework Rules
Section titled “Framework Rules”Axum (3 rules)
Section titled “Axum (3 rules)”| Rule | Dimension | Severity |
|---|---|---|
| missing_cors | Security | Medium |
| missing_timeout | Stability | Medium |
| missing_error_handler | Stability | Medium |
Tokio (2 rules)
Section titled “Tokio (2 rules)”| Rule | Dimension | Severity |
|---|---|---|
| missing_graceful_shutdown | Stability | High |
| missing_runtime_config | Scalability | Medium |
SQLx (3 rules)
Section titled “SQLx (3 rules)”| Rule | Dimension | Severity |
|---|---|---|
| missing_pool_timeout | Stability | Medium |
| missing_transaction | Correctness | Medium |
| query_without_timeout | Stability | High |