Decision Workspace
toktok-rs vs tiktoken vs riptoken
Side-by-side comparison of Rust crates
61
toktok-rs
experimentalv0.1.4
Fast, exact BPE tokenizer for OpenAI encodings (cl100k_base, o200k_base, o200k_harmony) — tiktoken-identical ids, no dependencies
61
tiktoken
stablev4.1.2
A high-performance pure-Rust implementation of OpenAI's tiktoken BPE tokenizer
57
riptoken
experimentalv0.3.0
Fast BPE tokenizer for LLMs — a faster, drop-in compatible reimplementation of tiktoken
Core Metrics
| toktok-rs | tiktoken | riptoken | |
|---|---|---|---|
| Health Score | 61 | 61 | 57 |
| Total Downloads | 1.1K | 57.8K | 410.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 245 | 0 |
| Releases | 4 | 26 | 8 |
| Last Updated | 37d ago | 57d ago | 181d ago |
| Age | 1m | 3y 1m | 6m |
Health Breakdown
toktok-rs
Maintenance
17
Quality
14
Community
11
Popularity
4
Documentation
15
tiktoken
Maintenance
16
Quality
13
Community
13
Popularity
6
Documentation
13
riptoken
Maintenance
15
Quality
14
Community
6
Popularity
7
Documentation
15
Technical Details
| toktok-rs | tiktoken | riptoken | |
|---|---|---|---|
| Version | 0.1.4 | 4.1.2 | 0.3.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 9 | 9 |
| Crate Size | 2.3MB | 5.3MB | 41KB |
| Features | 2 | 23 | 3 |
| Yanked % | 0.0% | 26.9% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | 1.70 | — | 1.85 |
| Owners | 2 (team) | 1 | 1 |
Links
Quick Verdict
- •toktok-rs leads with a health score of 61/100, but none of the options score above 80.
- •riptoken has the most downloads (410.5K), suggesting wider adoption.
- •tiktoken is depended on by 245 crates — strongest ecosystem trust.
- •toktok-rs, riptoken are pre-1.0 — API may change.