Decision Workspace
c_str_macro vs constant-cstr vs nameth
Side-by-side comparison of Rust crates
47
c_str_macro
growingv1.0.3
c_str macro to create C-compatible string literals
39
constant-cstr
growingv0.1.1
Create const instances of CStr at compile time
59
nameth
growingv0.1.23
A simple macro to generate a static &str representing the name of a function, a struct or an enum
Core Metrics
| c_str_macro | constant-cstr | nameth | |
|---|---|---|---|
| Health Score | 47 | 39 | 59 |
| Total Downloads | 151.3K | 2.8K | 14.4K |
| 30d Downloads | 6.2K | 4 | 328 |
| Dependents | 61 | 0 | 175 |
| Releases | 4 | 2 | 24 |
| Last Updated | 1818d ago | 1339d ago | 20d ago |
| Age | 8y 4m | 3y 8m | 1y 3m |
Health Breakdown
c_str_macro
Maintenance
2
Quality
20
Community
10
Popularity
6
Documentation
9
constant-cstr
Maintenance
4
Quality
15
Community
6
Popularity
4
Documentation
10
nameth
Maintenance
18
Quality
14
Community
12
Popularity
5
Documentation
10
Technical Details
| c_str_macro | constant-cstr | nameth | |
|---|---|---|---|
| Version | 1.0.3 | 0.1.1 | 0.1.23 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Apache-2.0/MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 2 | 1 |
| Crate Size | 7KB | 3KB | 3KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 4.2% |
| Edition | 2018 | 2021 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •nameth leads with a health score of 59/100, but none of the options score above 80.
- •c_str_macro has the most downloads (151.3K), suggesting wider adoption.
- •nameth is depended on by 175 crates — strongest ecosystem trust.
- •⚠ c_str_macro, constant-cstr have not been updated in over a year.
- •constant-cstr, nameth are pre-1.0 — API may change.