Decision Workspace
dirty_static vs url-static vs locks
Side-by-side comparison of Rust crates
42
dirty_static
growingv0.1.2
A container for an immutable value that allows sneaky reloading in debug mode (via UnsafeCell) while keeping the data safe and constant in release mode. This allows you to tweak data while testing an application, without having that data be mutable when the application is released. Intended for use with game assets, but suitable for any interactive application.
58
url-static
growingv1.0.0
Simple macro for compile-time URL validation
57
locks
experimentalv1.0.0
Thread-safe type wrappers
Core Metrics
| dirty_static | url-static | locks | |
|---|---|---|---|
| Health Score | 42 | 58 | 57 |
| Total Downloads | 4.0K | 31.4K | 355 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2 | 49 |
| Releases | 3 | 7 | 5 |
| Last Updated | 344d ago | 27d ago | 84d ago |
| Age | 6y 11m | 7m | 2m |
Health Breakdown
dirty_static
Maintenance
5
Quality
18
Community
6
Popularity
4
Documentation
9
url-static
Maintenance
17
Quality
17
Community
7
Popularity
5
Documentation
12
locks
Maintenance
14
Quality
17
Community
11
Popularity
3
Documentation
12
Technical Details
| dirty_static | url-static | locks | |
|---|---|---|---|
| Version | 0.1.2 | 1.0.0 | 1.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | CC0-1.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 5 | 1 |
| Crate Size | 6KB | 12KB | 10KB |
| Features | 3 | 4 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | 1.85.1 | 1.99 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •url-static leads with a health score of 58/100, but none of the options score above 80.
- •dirty_static is pre-1.0 — API may change.