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