gproxy-tokenize 2.6.2

Offline token counting for LLM request bodies: tiktoken, Hugging Face vocabularies, character estimate
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"
name = "gproxy-tokenize"
version = "2.6.2"
authors = ["LeenHawk <leenhawk@leenhawk.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Offline token counting for LLM request bodies: tiktoken, Hugging Face vocabularies, character estimate"
homepage = "https://gproxy.leenhawk.com"
readme = "README.md"
keywords = [
    "llm",
    "tokenizer",
    "tiktoken",
    "tokens",
    "bpe",
]
categories = [
    "text-processing",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/LeenHawk/gproxy"

[package.metadata.docs.rs]
features = ["count-local"]

[features]
bundled-fallback = ["hf-registry"]
count-local = [
    "tiktoken",
    "hf-registry",
    "bundled-fallback",
]
default = []
hf-registry = [
    "dep:anyhow",
    "dep:async-trait",
    "dep:bytes",
    "dep:dashmap",
    "dep:http",
    "dep:tokenizers",
    "dep:tokio",
    "dep:tracing",
]
tiktoken = ["dep:tiktoken-rs"]

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

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.bytes]
version = "1"
optional = true

[dependencies.dashmap]
version = "6"
optional = true

[dependencies.http]
version = "1"
optional = true

[dependencies.serde_json]
version = "1"

[dependencies.tiktoken-rs]
version = "0.12"
optional = true

[dependencies.tokenizers]
version = "0.23"
features = ["onig"]
optional = true
default-features = false

[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]