kkachi 0.1.8

High-performance, zero-copy library for optimizing language model prompts and programs
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 = "2021"
name = "kkachi"
version = "0.1.8"
authors = ["terekete <spicyzhug@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance, zero-copy library for optimizing language model prompts and programs"
homepage = "https://github.com/lituus-io/kkachi"
documentation = "https://docs.rs/kkachi"
readme = "README.md"
keywords = [
    "llm",
    "optimization",
    "prompt-engineering",
    "dspy",
    "ai",
]
categories = [
    "development-tools",
    "text-processing",
    "asynchronous",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/lituus-io/kkachi"

[features]
api = ["dep:reqwest"]
chunking = ["text-splitter"]
default = [
    "std",
    "native",
]
embeddings-full = [
    "embeddings-onnx",
    "hnsw",
]
embeddings-onnx = [
    "ort",
    "tokenizers",
    "ndarray",
]
hnsw = []
huggingface = [
    "tokenizers",
    "text-splitter",
]
native = [
    "tokio",
    "tokio-stream",
    "memmap2",
    "rayon",
    "console",
]
std = []
storage = [
    "duckdb",
    "native",
    "zip",
    "sha2",
    "zstd",
]
tiktoken = [
    "tiktoken-rs",
    "text-splitter",
]
tracing = ["dep:tracing"]
wasm = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-stream]
version = "0.3"

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

[dependencies.bincode]
version = "1.3"

[dependencies.blake3]
version = "1.5"

[dependencies.bumpalo]
version = "3.14"
features = ["collections"]

[dependencies.bytes]
version = "1.5"

[dependencies.console]
version = "0.15"
optional = true

[dependencies.crossbeam]
version = "0.8"

[dependencies.dashmap]
version = "6.1"

[dependencies.duckdb]
version = "=1.4.3"
features = ["bundled"]
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.lru]
version = "0.12"

[dependencies.memmap2]
version = "0.9"
optional = true

[dependencies.minijinja]
version = "2"
features = ["loader"]

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.ort]
version = "2.0.0-rc.11"
optional = true

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "blocking",
    "rustls-tls",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.similar]
version = "2.4"

[dependencies.smallvec]
version = "1.13"
features = [
    "const_generics",
    "union",
    "serde",
]

[dependencies.string-interner]
version = "0.17"
features = ["serde"]

[dependencies.text-splitter]
version = "0.18"
optional = true
default-features = false

[dependencies.thiserror]
version = "1.0"

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

[dependencies.tokenizers]
version = "0.21"
optional = true

[dependencies.tokio]
version = "1.41"
features = ["full"]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.zip]
version = "2.2"
features = ["deflate"]
optional = true
default-features = false

[dependencies.zstd]
version = "0.13"
optional = true

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

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

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

[dev-dependencies.tokio]
version = "1.41"
features = ["full"]