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