[package]
edition = "2024"
rust-version = "1.91"
name = "cognee-chunking"
version = "0.1.3"
authors = ["Topoteretes <support@cognee.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Text chunking and token counting for the cognee ingestion pipeline."
homepage = "https://www.cognee.ai"
readme = "README.md"
keywords = [
"ai",
"knowledge-graph",
"memory",
"rag",
"embeddings",
]
categories = [
"science",
"database",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/topoteretes/cognee-rs"
[features]
default = []
hf-tokenizer = [
"dep:tokenizers",
"tokenizers/http",
]
tiktoken = ["dep:tiktoken-rs"]
[lib]
name = "cognee_chunking"
path = "src/lib.rs"
[[test]]
name = "wasm"
path = "tests/wasm.rs"
[[test]]
name = "wasm_browser"
path = "tests/wasm_browser.rs"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.cognee-models]
version = "0.1.3"
[dependencies.cognee-utils]
version = "0.1.3"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2.0"
[dependencies.tiktoken-rs]
version = "0.6"
optional = true
[dependencies.tokenizers]
version = "0.21"
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.21"
features = [
"v4",
"v5",
"serde",
"js",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.cognee-storage]
version = "0.1.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"fs",
"io-util",
]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"fs",
"io-util",
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[lints.clippy]
expect_used = "warn"
unwrap_used = "warn"