llm-tokenizer 1.0.0

LLM tokenizer library with caching and chat template support
Documentation
[dependencies.anyhow]
version = "1.0"

[dependencies.blake3]
version = "1.5"

[dependencies.bytemuck]
features = ["derive"]
version = "1.21"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.hf-hub]
features = ["tokio"]
version = "0.4.3"

[dependencies.lru]
version = "0.16.2"

[dependencies.minijinja]
features = ["unstable_machinery", "json", "builtins"]
version = "2.0"

[dependencies.minijinja-contrib]
features = ["pycompat"]
version = "2.0"

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.rayon]
version = "1.10"

[dependencies.serde]
features = ["derive"]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tiktoken-rs]
version = "0.7.0"

[dependencies.tokenizers]
version = "0.22.0"

[dependencies.tokio]
features = ["sync", "rt-multi-thread", "macros"]
version = "1.42.0"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
features = ["v4", "serde"]
version = "1.10"

[dev-dependencies.openai-protocol]
version = "1.0.0"

[dev-dependencies.reqwest]
default-features = false
features = ["blocking"]
version = "0.12.8"

[dev-dependencies.tempfile]
version = "3.8"

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

[package]
authors = ["Simo Lin <linsimo.mark@gmail.com>", "Chang Su <mckvtl@gmail.com>", "Keyang Ru <rukeyang@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["text-processing", "parsing"]
description = "LLM tokenizer library with caching and chat template support"
edition = "2021"
keywords = ["tokenizer", "llm", "huggingface", "tiktoken", "chat-template"]
license = "Apache-2.0"
name = "llm-tokenizer"
readme = "README.md"
repository = "https://github.com/lightseekorg/smg"
version = "1.0.0"

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

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

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

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

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