Decision Workspace
tokount vs loc-rs vs ocloc
Side-by-side comparison of Rust crates
52
tokount
experimentalv2.1.6
The fastest line counter for codebases
44
loc-rs
experimentalv0.2.0
Advanced Lines of Code counter with function extraction, git integration, and parallel processing
51
ocloc
experimentalv0.5.1
Fast, reliable lines-of-code counter with JSON/CSV output
Core Metrics
| tokount | loc-rs | ocloc | |
|---|---|---|---|
| Health Score | 52 | 44 | 51 |
| Total Downloads | 84 | 58 | 1.0K |
| 30d Downloads | 84 | 24 | 21 |
| Dependents | 0 | 0 | 0 |
| Releases | 8 | 4 | 4 |
| Last Updated | 1d ago | 26d ago | 70d ago |
| Age | 4d | 1m | 6m |
Health Breakdown
tokount
Maintenance
19
Quality
13
Community
6
Popularity
2
Documentation
12
loc-rs
Maintenance
17
Quality
7
Community
6
Popularity
2
Documentation
12
ocloc
Maintenance
14
Quality
12
Community
6
Popularity
4
Documentation
15
Technical Details
| tokount | loc-rs | ocloc | |
|---|---|---|---|
| Version | 2.1.6 | 0.2.0 | 0.5.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 14 | 28 | 14 |
| Crate Size | 324KB | 3.1MB | 58KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.92 | 1.92.0 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •tokount leads with a health score of 52/100, but none of the options score above 80.
- •ocloc has the most downloads (1.0K), suggesting wider adoption.
- •loc-rs, ocloc are pre-1.0 — API may change.