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
38
constant-cstr
growingv0.1.1
Create const instances of CStr at compile time
61
nameth
growingv0.2.21
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 | 38 | 61 |
| Total Downloads | 201.3K | 2.8K | 17.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 68 | 0 | 420 |
| Releases | 4 | 2 | 47 |
| Last Updated | 2014d ago | 1535d ago | 3d ago |
| Age | 8y 10m | 4y 2m | 1y 9m |
Health Breakdown
c_str_macro
Maintenance
2
Quality
20
Community
10
Popularity
6
Documentation
9
constant-cstr
Maintenance
3
Quality
15
Community
6
Popularity
4
Documentation
10
nameth
Maintenance
19
Quality
14
Community
13
Popularity
5
Documentation
10
Technical Details
| c_str_macro | constant-cstr | nameth | |
|---|---|---|---|
| Version | 1.0.3 | 0.1.1 | 0.2.21 |
| 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% | 2.1% |
| Edition | 2018 | 2021 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •nameth leads with a health score of 61/100, but none of the options score above 80.
- •c_str_macro has the most downloads (201.3K), suggesting wider adoption.
- •nameth is depended on by 420 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.