Rust library for encoding and decoding text using OpenAI's tiktoken tokenizer.
# Cargo.toml
[dependencies]
tiktoken-rs = "0.12.0"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Encode a string using the cl100k_base tokenizer.
Ensure network access or pre-cache the tokenizer files.
No dependency data recorded yet.