# 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 = "cognigraph-chunker"
version = "2.2.4"
build = false
exclude = [
    "docs/",
    "tests/python/",
    "packages/",
    ".github/",
    "models/",
    ".env*",
    ".claude/",
    ".DS_Store",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast text chunking toolkit: fixed-size, delimiter, semantic, cognition-aware, intent-driven, topology-aware, enriched, and adaptive strategies with CLI, REST API, and Python bindings"
readme = "README.md"
keywords = [
    "chunking",
    "rag",
    "embeddings",
    "nlp",
    "text-processing",
]
categories = [
    "text-processing",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/gedankrayze/cognigraph-chunker"

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

[[bin]]
name = "cognigraph-chunker"
path = "src/main.rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.8"

[dependencies.clap]
version = "4.6"
features = ["derive"]

[dependencies.clap_complete]
version = "4.6"

[dependencies.daggrs]
version = "0.1"

[dependencies.futures]
version = "0.3"

[dependencies.memchr]
version = "2.8"

[dependencies.ndarray]
version = "0.17"

[dependencies.ort]
version = "2.0.0-rc.11"
features = [
    "std",
    "ndarray",
    "tracing",
    "api-24",
    "load-dynamic",
]
default-features = false

[dependencies.pulldown-cmark]
version = "0.13.3"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "form",
    "charset",
    "http2",
    "rustls-no-provider",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.subtle]
version = "2"

[dependencies.tokenizers]
version = "0.23"

[dependencies.tokio]
version = "1.51"
features = ["full"]

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "timeout",
    "limit",
]

[dependencies.unicode-script]
version = "0.5"

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

[dependencies.url]
version = "2"

[dependencies.whatlang]
version = "0.18"

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

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
