code-chunker 0.2.0

AST-aware code chunking and late chunking for RAG
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"
rust-version = "1.81"
name = "code-chunker"
version = "0.2.0"
authors = ["Arc <attobop@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AST-aware code chunking and late chunking for RAG"
readme = "README.md"
keywords = [
    "chunking",
    "rag",
    "code",
    "tree-sitter",
    "embedding",
]
categories = ["text-processing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/code-chunker"

[features]
code = [
    "dep:tree-sitter",
    "dep:tree-sitter-rust",
    "dep:tree-sitter-python",
    "dep:tree-sitter-typescript",
    "dep:tree-sitter-go",
]
default = []
serde = ["dep:serde"]

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

[[example]]
name = "code_chunking"
path = "examples/code_chunking.rs"
required-features = ["code"]

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

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

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

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

[dependencies.thiserror]
version = "2.0"

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

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

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

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

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

[dependencies.unicode-segmentation]
version = ">=1.11, <1.13"

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