[package]
name = "tiktokenx"
version = "0.1.0"
edition = "2024"
authors = ["Umesh Yadav <git@umesh.dev>"]
description = "A high-performance Rust implementation of OpenAI's tiktoken library"
license = "MIT"
repository = "https://github.com/imumesh18/tiktokenx"
homepage = "https://github.com/imumesh18/tiktokenx"
documentation = "https://docs.rs/tiktokenx"
readme = "README.md"
keywords = ["tokenizer", "bpe", "openai", "gpt", "nlp"]
categories = ["text-processing", "algorithms"]
rust-version = "1.85.0"
exclude = [
".github/",
"scripts/",
"target/",
]
[lib]
name = "tiktokenx"
crate-type = ["lib"]
[dependencies]
regex = "1.10"
reqwest = { version = "0.12", features = ["blocking"], optional = true }
base64 = "0.22"
sha2 = { version = "0.10", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
[dev-dependencies]
criterion = { version = "0.7", features = ["html_reports"] }
tokio-test = "0.4"
peak_alloc = "0.3"
[[bench]]
name = "encoding_benchmark"
harness = false
[features]
default = ["download"]
serde_support = ["serde"]
download = ["reqwest", "sha2"]