splintr 0.12.0

Fast Rust tokenizer (BPE + SentencePiece + WordPiece) with Python bindings
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 = "2021"
name = "splintr"
version = "0.12.0"
build = false
include = [
    "/src/**/*.rs",
    "/tests/**/*.rs",
    "/examples/**/*.rs",
    "/vocabs/*.tiktoken",
    "/vocabs/*.spm",
    "/Cargo.toml",
    "/README.md",
    "/CHANGELOG.md",
    "/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast Rust tokenizer (BPE + SentencePiece + WordPiece) with Python bindings"
homepage = "https://github.com/ml-rust/splintr"
readme = "README.md"
keywords = [
    "tokenizer",
    "bpe",
    "sentencepiece",
    "wordpiece",
    "llm",
]
categories = [
    "text-processing",
    "encoding",
]
license = "MIT"
repository = "https://github.com/ml-rust/splintr"

[features]
default = [
    "rayon",
    "regexr-jit",
]
pcre2 = ["dep:pcre2"]
python = ["dep:pyo3"]
rayon = ["dep:rayon"]
regexr-jit = [
    "regexr/jit",
    "regexr/simd",
]

[lib]
name = "splintr"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aho-corasick]
version = "1.1"

[dependencies.base64]
version = "0.22"

[dependencies.lru]
version = "0.18"

[dependencies.pcre2]
version = "0.2"
optional = true

[dependencies.pyo3]
version = "0.29"
features = [
    "extension-module",
    "abi3-py38",
]
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.regexr]
version = "0.1.5"
default-features = false

[dependencies.rustc-hash]
version = "2.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.unicode-general-category]
version = "1.0"

[dependencies.unicode-normalization]
version = "0.1"

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

[profile.release]
opt-level = 3
lto = true
codegen-units = 1