tinyjuice 0.2.0

Pluggable token compression for OpenHuman.
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"
name = "tinyjuice"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pluggable token compression for OpenHuman."
readme = "README.md"
keywords = [
    "llm",
    "tokens",
    "compression",
    "openhuman",
    "context",
]
categories = ["text-processing"]
license = "GPL-3.0-only"
repository = "https://github.com/tinyhumansai/tinyjuice"

[features]
default = ["tokenjuice-treesitter"]
tokenjuice-treesitter = [
    "dep:tree-sitter",
    "dep:tree-sitter-python",
    "dep:tree-sitter-rust",
    "dep:tree-sitter-typescript",
]

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

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

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1"

[dependencies.dirs]
version = "6"

[dependencies.hex]
version = "0.4"

[dependencies.log]
version = "0.4"

[dependencies.once_cell]
version = "1"

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
]

[dependencies.tree-sitter]
version = "0.26"
optional = true

[dependencies.tree-sitter-python]
version = "0.25"
optional = true

[dependencies.tree-sitter-rust]
version = "0.24"
optional = true

[dependencies.tree-sitter-typescript]
version = "0.23"
optional = true

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

[dependencies.unicode-width]
version = "0.2"

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

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "test-util",
]