Decision Workspace
nest-rs-authz vs nest-rs-guards vs laye
Side-by-side comparison of Rust crates
57
nest-rs-authz
experimentalv6.1.0
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.
61
nest-rs-guards
experimentalv6.1.0
Transport-spanning guards for NestRS — one trait, four transports (HTTP, GraphQL, WS, MCP), declared once with App::builder().use_guards_global(...).
53
laye
experimentalv0.2.0
A framework-agnostic role and permission based access control library
Core Metrics
| nest-rs-authz | nest-rs-guards | laye | |
|---|---|---|---|
| Health Score | 57 | 61 | 53 |
| Total Downloads | 560 | 1.1K | 214 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 38 | 113 | 0 |
| Releases | 19 | 19 | 2 |
| Last Updated | 41d ago | 41d ago | 3d ago |
| Age | 4m | 4m | 5m |
Health Breakdown
nest-rs-authz
Maintenance
16
Quality
16
Community
10
Popularity
3
Documentation
12
nest-rs-guards
Maintenance
16
Quality
17
Community
12
Popularity
4
Documentation
12
laye
Maintenance
17
Quality
14
Community
6
Popularity
3
Documentation
13
Technical Details
| nest-rs-authz | nest-rs-guards | laye | |
|---|---|---|---|
| Version | 6.1.0 | 6.1.0 | 0.2.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 21 | 15 | 8 |
| Crate Size | 117KB | 68KB | 31KB |
| Features | 6 | 4 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 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-guards is depended on by 113 crates — strongest ecosystem trust.
- •laye is pre-1.0 — API may change.