cognee-chunking 0.1.0

Text chunking and token counting for the cognee ingestion pipeline.
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.91"
name = "cognee-chunking"
version = "0.1.0"
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"

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

[dependencies.cognee-models]
version = "0.1.0"

[dependencies.cognee-storage]
version = "0.1.0"

[dependencies.cognee-utils]
version = "0.1.0"

[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.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "fs",
    "io-util",
]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.21"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "fs",
    "io-util",
]

[lints.clippy]
expect_used = "warn"
unwrap_used = "warn"