# 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.85"
name = "miktik"
version = "0.1.1"
build = false
exclude = [
    ".local/**",
    "scripts/**",
    "tests/**",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A unified, multi-backend tokenizer library for LLMs"
homepage = "https://github.com/Darkatse/MikTik"
documentation = "https://docs.rs/miktik"
readme = "README.md"
keywords = [
    "llm",
    "tokenizer",
    "tiktoken",
    "huggingface",
    "rust",
]
categories = ["text-processing"]
license = "MIT"
repository = "https://github.com/Darkatse/MikTik"

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

[dependencies.encoding_rs]
version = "0.8.35"

[dependencies.sentencepiece-model]
version = "0.1.4"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokenizers]
version = "0.22.2"

[profile.dev.package.sentencepiece-model]
opt-level = 3

[profile.dev.package.tiktoken-rs]
opt-level = 3

[profile.dev.package.tokenizers]
opt-level = 3

[profile.test.package.sentencepiece-model]
opt-level = 3

[profile.test.package.tiktoken-rs]
opt-level = 3

[profile.test.package.tokenizers]
opt-level = 3
