[package]
edition = "2021"
name = "slabs"
version = "0.1.2"
authors = ["Arc <attobop@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Text chunking for RAG: fixed, sentence, recursive, and semantic strategies"
readme = "README.md"
keywords = [
"chunking",
"rag",
"nlp",
"text",
"segmentation",
]
categories = ["text-processing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/slabs"
[features]
cli = [
"dep:clap",
"dep:serde_json",
]
code = [
"dep:tree-sitter",
"dep:tree-sitter-rust",
"dep:tree-sitter-python",
"dep:tree-sitter-typescript",
"dep:tree-sitter-go",
]
default = []
semantic = [
"dep:fastembed",
"dep:innr",
"dep:textprep",
]
[lib]
name = "slabs"
path = "src/lib.rs"
[[bin]]
name = "slabs"
path = "src/bin/slabs.rs"
[[example]]
name = "01_basic_chunking"
path = "examples/01_basic_chunking.rs"
[[example]]
name = "chunking_strategies"
path = "examples/chunking_strategies.rs"
[[test]]
name = "code_props"
path = "tests/code_props.rs"
[[test]]
name = "coverage_tests"
path = "tests/coverage_tests.rs"
[[test]]
name = "integration_innr"
path = "tests/integration_innr.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[bench]]
name = "chunking"
path = "benches/chunking.rs"
harness = false
[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[dependencies.fastembed]
version = "5.8.1"
optional = true
[dependencies.innr]
version = "0.1.6"
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.textprep]
version = "0.1.1"
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"
[dev-dependencies.criterion]
version = "0.7"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1.9"