Decision Workspace
srcpos vs codemap vs sourcefile
Side-by-side comparison of Rust crates
46
srcpos
growingv1.1.1
Structure of the location in the source code
53
codemap
growingv0.1.3
A data structure for efficiently storing source code position and span information (e.g. in a compiler AST), and mapping it back to file/line/column locations for error reporting and suggestions.
44
sourcefile
growingv0.2.1
Retain mapping information when concatenating source files, to make error messages more useful
Core Metrics
| srcpos | codemap | sourcefile | |
|---|---|---|---|
| Health Score | 46 | 53 | 44 |
| Total Downloads | 5.6K | 3.2M | 1.3M |
| 30d Downloads | 40 | 174.0K | 27.2K |
| Dependents | 6 | 321 | 56 |
| Releases | 3 | 4 | 7 |
| Last Updated | 2104d ago | 2175d ago | 1727d ago |
| Age | 5y 10m | 8y 10m | 7y 8m |
Health Breakdown
srcpos
Maintenance
4
Quality
21
Community
8
Popularity
4
Documentation
9
codemap
Maintenance
6
Quality
16
Community
12
Popularity
8
Documentation
11
sourcefile
Maintenance
3
Quality
15
Community
11
Popularity
7
Documentation
8
Technical Details
| srcpos | codemap | sourcefile | |
|---|---|---|---|
| Version | 1.1.1 | 0.1.3 | 0.2.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT/Apache-2.0 | Apache-2.0/MIT |
| Dependencies | 1 | 0 | 1 |
| Crate Size | 4KB | 9KB | 8KB |
| Features | 1 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | — | — |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •codemap leads with a health score of 53/100, but none of the options score above 80.
- •codemap is depended on by 321 crates — strongest ecosystem trust.
- •⚠ srcpos, codemap, sourcefile have not been updated in over a year.
- •codemap, sourcefile are pre-1.0 — API may change.