tiktoken 3.1.4

A high-performance pure-Rust implementation of OpenAI's tiktoken BPE tokenizer
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94"
name = "tiktoken"
version = "3.1.4"
authors = [
    "GOLIA株式会社",
    "Li Hao <lihao@golia.jp>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance pure-Rust implementation of OpenAI's tiktoken BPE tokenizer"
homepage = "https://github.com/goliajp/rust-tiktoken"
documentation = "https://docs.rs/tiktoken"
readme = "README.md"
keywords = [
    "tiktoken",
    "tokenizer",
    "bpe",
    "openai",
    "gpt",
]
categories = [
    "text-processing",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/goliajp/rust-tiktoken"

[features]
default = []
parallel = ["rayon"]

[lib]
name = "tiktoken"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "cost_estimation"
path = "examples/cost_estimation.rs"

[[example]]
name = "count_tokens"
path = "examples/count_tokens.rs"

[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"

[[test]]
name = "generate_oracle"
path = "tests/generate_oracle.rs"

[[test]]
name = "oracle"
path = "tests/oracle.rs"

[[test]]
name = "oracle_hf"
path = "tests/oracle_hf.rs"

[[test]]
name = "parallel"
path = "tests/parallel.rs"

[[test]]
name = "proptest"
path = "tests/proptest.rs"

[[bench]]
name = "tokenize"
path = "benches/tokenize.rs"
harness = false

[dependencies.base64]
version = "^0.22"

[dependencies.rayon]
version = "^1"
optional = true

[dependencies.regex]
version = "^1"

[dependencies.rustc-hash]
version = "^2"

[dependencies.ruzstd]
version = "^0.8"

[dev-dependencies.criterion]
version = "^0.8"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "^1"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"