tokenfold-core 0.3.2

Token-aware compression for LLM payloads: shrink JSON tool-call bodies, command output, and diffs with exact tiktoken accounting and a typed safety report.
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 = "2024"
rust-version = "1.97"
name = "tokenfold-core"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Token-aware compression for LLM payloads: shrink JSON tool-call bodies, command output, and diffs with exact tiktoken accounting and a typed safety report."
readme = false
keywords = [
    "llm",
    "tokenizer",
    "compression",
    "tiktoken",
    "openai",
]
categories = [
    "compression",
    "text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/snchimata/tokenfold"
resolver = "2"

[features]
default = ["tiktoken"]
tiktoken = ["dep:tiktoken-rs"]

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

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

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

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

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

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

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1"

[dependencies.tiktoken-rs]
version = "0.7"
optional = true

[dependencies.toml]
version = "0.8"

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