Set up the Maturin build system and Rust project structure alongside the existing Python layout.
Wiki: Phase 1 detail
Branch: feature/rust-backend
Tasks
Notes
- Do not rename or move existing
TextSpitter/ modules
- The Rust extension is named
text_spitter_rust to avoid import collision with the TextSpitter package
Set up the Maturin build system and Rust project structure alongside the existing Python layout.
Wiki: Phase 1 detail
Branch:
feature/rust-backendTasks
pyproject.toml— swap build backend tomaturin>=1.4,<2.0; add[tool.maturin]configCargo.toml—text_spitter_rustcrate, PyO3 + Rayon deps, release profileTextSpitter/splitters.py— empty module skeleton (implementation in Phase 3)maturinto dev dependencies:uv add --dev maturinmaturin developbuilds without error; existinguv run pytest tests/still greenNotes
TextSpitter/modulestext_spitter_rustto avoid import collision with theTextSpitterpackage