Decision Workspace
nest-rs-guards vs nest-rs-interceptors vs nest-rs-authz
Side-by-side comparison of Rust crates
Transport-spanning guards for NestRS — one trait, four transports (HTTP, GraphQL, WS, MCP), declared once with App::builder().use_guards_global(...).
Transport-spanning interceptors for NestRS — one Layer System sub-trait wrapping handler execution on HTTP, GraphQL, and WS, declared globally via `use_interceptors_global` or per-scope through `#[use_interceptors]`.
Ability-based authorization for NestRS: one ability definition driving an access gate, a SeaORM query pre-filter, and response field-masking. Transport bindings (`http`, `graphql`, `mcp`) live behind Cargo features; the database-coupled extractors (`Bind`, `bind`, `LoaderScope`, `WsDataContext`) live in `nest-rs-seaorm` so the engine stays free of a data-layer dependency.
Core Metrics
| nest-rs-guards | nest-rs-interceptors | nest-rs-authz | |
|---|---|---|---|
| Health Score | 61 | 60 | 57 |
| Total Downloads | 1.1K | 1.3K | 560 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 113 | 133 | 38 |
| Releases | 19 | 19 | 19 |
| Last Updated | 41d ago | 41d ago | 41d ago |
| Age | 4m | 4m | 4m |
Health Breakdown
Technical Details
| nest-rs-guards | nest-rs-interceptors | nest-rs-authz | |
|---|---|---|---|
| Version | 6.1.0 | 6.1.0 | 6.1.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 15 | 6 | 21 |
| Crate Size | 68KB | 23KB | 117KB |
| Features | 4 | 0 | 6 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.97 | 1.97 | 1.97 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •nest-rs-guards leads with a health score of 61/100, but none of the options score above 80.
- •nest-rs-interceptors has the most downloads (1.3K), suggesting wider adoption.
- •nest-rs-interceptors is depended on by 133 crates — strongest ecosystem trust.