textbuf-lib is the buffer behind a code editor: a balanced piece tree that inserts and deletes in O(log n) on files of any size, keeps a line index current, converts between byte, UTF-8 and UTF-16 positions (for LSP), and takes cheap immutable snapshots for background analysis.
MSRV is 1.85+ (Rust 2024 edition).
Status: pre-1.0, in active development. The public API is being designed across the 0.x series and frozen at1.0.0. SeeCHANGELOG.md.
[dependencies]
textbuf-lib = "0.1"This is the v0.1.0 scaffold: structure, tooling, and quality gates are in place; the implementation lands across the 0.x series per the ROADMAP and docs/API.md.
See dev/DIRECTIVES.md for engineering standards and the definition of done. Before a PR: cargo fmt --all, cargo clippy --all-targets --all-features -- -D warnings, and cargo test --all-features must be clean.
Licensed under either of
- Apache License, Version 2.0 — LICENSE-APACHE
- MIT License — LICENSE-MIT
at your option.