Decision Workspace
varint-rs vs integer-encoding vs varint
Side-by-side comparison of Rust crates
65
varint-rs
stablev2.2.1
A small, zero dependency varint implementation in Rust.
57
integer-encoding
growingv4.1.0
varint+zigzag and fixedint integer encoding/decoding (https://developers.google.com/protocol-buffers/docs/encoding)
45
varint
growingv0.9.0
A Rust implementation of Google Protobuf's Variable-Length Integers
Core Metrics
| varint-rs | integer-encoding | varint | |
|---|---|---|---|
| Health Score | 65 | 57 | 45 |
| Total Downloads | 17.2M | 113.1M | 106.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 274 | 1.7K | 108 |
| Releases | 18 | 42 | 4 |
| Last Updated | 127d ago | 346d ago | 3955d ago |
| Age | 5y 10m | 10y 4m | 11y 2m |
Health Breakdown
varint-rs
Maintenance
12
Quality
23
Community
13
Popularity
8
Documentation
9
integer-encoding
Maintenance
8
Quality
17
Community
12
Popularity
8
Documentation
12
varint
Maintenance
2
Quality
17
Community
9
Popularity
6
Documentation
11
Technical Details
| varint-rs | integer-encoding | varint | |
|---|---|---|---|
| Version | 2.2.1 | 4.1.0 | 0.9.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | 0BSD | MIT | MIT |
| Dependencies | 0 | 5 | 2 |
| Crate Size | 6KB | 13KB | 6KB |
| Features | 3 | 2 | 2 |
| Yanked % | 0.0% | 16.7% | 0.0% |
| Edition | 2018 | 2018 | — |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •varint-rs leads with a health score of 65/100, but none of the options score above 80.
- •integer-encoding has the most downloads (113.1M), suggesting wider adoption.
- •integer-encoding is depended on by 1.7K crates — strongest ecosystem trust.
- •⚠ varint has not been updated in over a year.
- •varint is pre-1.0 — API may change.