# 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.88"
name = "llmtrim-core"
version = "0.1.13"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Static, deterministic LLM prompt/payload compression engine — the zero-LLM-call transform core behind llmtrim. No network, no async."
homepage = "https://github.com/fkiene/llmtrim"
readme = "README.md"
keywords = [
    "llm",
    "tokens",
    "compression",
    "openai",
    "anthropic",
]
categories = [
    "compression",
    "text-processing",
    "api-bindings",
]
license = "AGPL-3.0-only"
repository = "https://github.com/fkiene/llmtrim"

[[package.metadata.release.pre-release-replacements]]
file = "../../CHANGELOG.md"
search = '## \[Unreleased\]'
replace = """
## [Unreleased]

## [{{version}}] - {{date}}"""
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "../../CHANGELOG.md"
search = '\[Unreleased\]: https://github.com/fkiene/llmtrim/compare/(v[0-9.]+)\.\.\.HEAD'
replace = """
[Unreleased]: https://github.com/fkiene/llmtrim/compare/v{{version}}...HEAD
[{{version}}]: https://github.com/fkiene/llmtrim/compare/${1}...v{{version}}"""
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "../../README.md"
search = 'io\.github\.fkiene:llmtrim:[0-9]+\.[0-9]+\.[0-9]+'
replace = "io.github.fkiene:llmtrim:{{version}}"
min = 0

[[package.metadata.release.pre-release-replacements]]
file = "../../README.md"
search = '(fkiene/llmtrim", from: ")[0-9]+\.[0-9]+\.[0-9]+'
replace = "${1}{{version}}"
min = 0

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

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.base64]
version = "0.22.1"

[dependencies.bm25]
version = "2.3.2"

[dependencies.csv]
version = "1.4.0"

[dependencies.gaoya]
version = "0.2.0"

[dependencies.image]
version = "0.25.10"
features = [
    "png",
    "jpeg",
]
default-features = false

[dependencies.once_cell]
version = "1.21.4"

[dependencies.regex]
version = "1.12.3"

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

[dependencies.serde_json]
version = "1.0.150"
features = [
    "preserve_order",
    "arbitrary_precision",
]

[dependencies.stop-words]
version = "0.10.0"

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

[dependencies.toml]
version = "1.1.2"

[dependencies.toon-format]
version = "0.5.0"

[dependencies.tree-sitter]
version = "0.26.9"

[dependencies.tree-sitter-c]
version = "0.24.2"

[dependencies.tree-sitter-c-sharp]
version = "0.23.5"

[dependencies.tree-sitter-cpp]
version = "0.23.4"

[dependencies.tree-sitter-go]
version = "0.25.0"

[dependencies.tree-sitter-java]
version = "0.23.5"

[dependencies.tree-sitter-javascript]
version = "0.25.0"

[dependencies.tree-sitter-kotlin-ng]
version = "1.1.0"

[dependencies.tree-sitter-php]
version = "0.24.2"

[dependencies.tree-sitter-python]
version = "0.25.0"

[dependencies.tree-sitter-ruby]
version = "0.23.1"

[dependencies.tree-sitter-rust]
version = "0.24.2"

[dependencies.tree-sitter-swift]
version = "0.7.3"

[dependencies.tree-sitter-typescript]
version = "0.23.2"

[dependencies.tree-sitter-zig]
version = "1.1.2"

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

[dependencies.unicode-segmentation]
version = "1.13.3"

[dependencies.whatlang]
version = "0.18.0"

[lints.rust]
unsafe_code = "forbid"
warnings = "deny"
