recoco_splitters/lib.rs
1// Recoco is a Rust-only fork of CocoIndex, by [CocoIndex](https://CocoIndex)
2// Original code from CocoIndex is copyrighted by CocoIndex
3// SPDX-FileCopyrightText: 2025-2026 CocoIndex (upstream)
4// SPDX-FileContributor: CocoIndex Contributors
5//
6// All modifications from the upstream for Recoco are copyrighted by Knitli Inc.
7// SPDX-FileCopyrightText: 2026 Knitli Inc. (Recoco)
8// SPDX-FileContributor: Adam Poulemanos <adam@knit.li>
9//
10// Both the upstream CocoIndex code and the Recoco modifications are licensed under the Apache-2.0 License.
11// SPDX-License-Identifier: Apache-2.0
12
13//! Extra text processing utilities for CocoIndex.
14//!
15//! This crate provides text processing functionality including:
16//! - Programming language detection and tree-sitter support
17//! - Text splitting by separators
18//! - Recursive text chunking with syntax awareness
19//! - Pattern matching for file filtering
20
21#[cfg(feature = "splitter-separator")]
22mod by_separators;
23#[cfg(any(feature = "splitter-separator", feature = "splitter-recursive"))]
24mod output_positions;
25#[cfg(feature = "pattern-matching")]
26pub mod pattern_matcher;
27#[cfg(feature = "splitter-recursive")]
28pub mod prog_langs;
29#[cfg(feature = "splitter-recursive")]
30mod recursive;
31pub mod split;