Skip to content

About

Piece-tree text buffer with line index and UTF-8/UTF-16 positions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Rust logo
textbuf-lib
EDITOR TEXT BUFFER

Crates.io Downloads docs.rs CI MSRV

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 at 1.0.0. See CHANGELOG.md.


Installation

[dependencies]
textbuf-lib = "0.1"

Status

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.



Contributing

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.


License

Licensed under either of

at your option.

COPYRIGHT © 2026 James Gober.

About

Piece-tree text buffer with line index and UTF-8/UTF-16 positions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages