# 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.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast Rust BPE tokenizer with Python bindings"
homepage = "https://github.com/farhan/splintr"
readme = "README.md"
keywords = [
    "tokenizer",
    "bpe",
    "tiktoken",
    "gpt",
    "llm",
]
categories = [
    "text-processing",
    "encoding",
]
license = "MIT"
repository = "https://github.com/farhan/splintr"

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.lru]
version = "0.12"

[dependencies.pcre2]
version = "0.2"

[dependencies.pyo3]
version = "0.23"
features = ["extension-module"]

[dependencies.rayon]
version = "1.10"

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

[dependencies.thiserror]
version = "2.0"

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