Decision Workspace
better_cstr vs cstr-literal vs indoc
Side-by-side comparison of Rust crates
42
better_cstr
experimentalv0.2.1
A better macro for working with C strings
40
cstr-literal
growingv0.1.0
A const-friendly macro for C string literals.
68
indoc
growingv2.0.7
Indented document literals
Core Metrics
| better_cstr | cstr-literal | indoc | |
|---|---|---|---|
| Health Score | 42 | 40 | 68 |
| Total Downloads | 1.8K | 16.7K | 212.2M |
| 30d Downloads | 5 | 2.1K | 14.7M |
| Dependents | 0 | 2 | 23.4K |
| Releases | 3 | 1 | 50 |
| Last Updated | 335d ago | 1031d ago | 157d ago |
| Age | 11m | 2y 10m | 10y |
Health Breakdown
better_cstr
Maintenance
9
Quality
14
Community
5
Popularity
4
Documentation
10
cstr-literal
Maintenance
1
Quality
15
Community
7
Popularity
5
Documentation
12
indoc
Maintenance
11
Quality
19
Community
15
Popularity
8
Documentation
15
Technical Details
| better_cstr | cstr-literal | indoc | |
|---|---|---|---|
| Version | 0.2.1 | 0.1.0 | 2.0.7 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 3 | 2 | 4 |
| Crate Size | 6KB | 4KB | 17KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.64.0 | 1.60 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •indoc leads with a health score of 68/100, but none of the options score above 80.
- •indoc is depended on by 23.4K crates — strongest ecosystem trust.
- •⚠ cstr-literal has not been updated in over a year.
- •better_cstr, cstr-literal are pre-1.0 — API may change.