# 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.87"
name = "devboy-format-pipeline"
version = "0.28.0"
authors = ["Meteora <dev@meteora.pro>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Format pipeline for devboy-tools — TOON encoding, MCKP tree-budget trimming, cursor pagination, deduplication; the output stage shared by every devboy provider."
homepage = "https://devboy.pro"
readme = "README.md"
keywords = [
    "devboy",
    "ai-agents",
    "tokenizer",
    "pagination",
    "compression",
]
categories = [
    "development-tools",
    "encoding",
    "compression",
]
license = "Apache-2.0"
repository = "https://github.com/meteora-pro/devboy-tools"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[[bin]]
name = "encode_mckp_v2"
path = "src/bin/encode_mckp_v2.rs"

[[bin]]
name = "eval"
path = "src/bin/eval.rs"

[[bin]]
name = "tune"
path = "src/bin/tune.rs"

[[bench]]
name = "dedup_bench"
path = "benches/dedup_bench.rs"
harness = false

[[bench]]
name = "format_comparison"
path = "benches/format_comparison.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.devboy-core]
version = "0.28.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.toml]
version = "0.8"

[dependencies.toon-format]
version = "0.4"
default-features = false

[dependencies.tracing]
version = "0.1"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.tokio]
version = "1.43"
features = [
    "full",
    "rt-multi-thread",
    "macros",
]

[lints.rust]
unsafe_code = "forbid"
