Decision Workspace
substring vs substrs vs str-macro
Side-by-side comparison of Rust crates
54
substring
growingv1.4.5
A substring method for string types.
36
substrs
growingv0.1.0
A crate for substring functionality for the str type in Rust
56
str-macro
growingv1.0.1
The str!() macro, similar to vec![] but for strings
Core Metrics
| substring | substrs | str-macro | |
|---|---|---|---|
| Health Score | 54 | 36 | 56 |
| Total Downloads | 7.3M | 1.7K | 1.1M |
| 30d Downloads | 535.4K | 3 | 13.9K |
| Dependents | 2.9K | 0 | 97 |
| Releases | 17 | 1 | 7 |
| Last Updated | 1877d ago | 2078d ago | 162d ago |
| Age | 5y 5m | 5y 8m | 6y 11m |
Health Breakdown
substring
Maintenance
6
Quality
17
Community
15
Popularity
8
Documentation
8
substrs
Maintenance
1
Quality
16
Community
6
Popularity
4
Documentation
9
str-macro
Maintenance
9
Quality
21
Community
10
Popularity
7
Documentation
9
Technical Details
| substring | substrs | str-macro | |
|---|---|---|---|
| Version | 1.4.5 | 0.1.0 | 1.0.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 1 | 0 | 0 |
| Crate Size | 8KB | 3KB | 4KB |
| Features | 0 | 0 | 0 |
| Yanked % | 5.9% | 0.0% | 0.0% |
| Edition | — | 2018 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •str-macro leads with a health score of 56/100, but none of the options score above 80.
- •substring has the most downloads (7.3M), suggesting wider adoption.
- •substring is depended on by 2.9K crates — strongest ecosystem trust.
- •⚠ substring, substrs have not been updated in over a year.
- •substrs is pre-1.0 — API may change.