M0.1: Cargo workspace with layered crates
Edition 2024 workspace with the crates from docs/architecture.md, each declaring its layer in package.metadata.lutra. Records the M0 architecture decisions (highlighting, Git library, terminal, text buffer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1fc46daa8e
commit
b10a2a72f9
31 changed files with 421 additions and 9 deletions
17
crates/text/Cargo.toml
Normal file
17
crates/text/Cargo.toml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[package]
|
||||
name = "lutra-text"
|
||||
description = "Rope text buffer, positions, UTF-8/UTF-16 conversion and edits"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[package.metadata.lutra]
|
||||
layer = 0
|
||||
|
||||
[dependencies]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
5
crates/text/src/lib.rs
Normal file
5
crates/text/src/lib.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//! Text model for Lutra (layer L0).
|
||||
//!
|
||||
//! Holds the rope buffer, line and column positions, UTF-8/UTF-16 offset
|
||||
//! conversion and edit application. Every other crate converts text offsets
|
||||
//! through this crate instead of slicing strings by hand.
|
||||
Loading…
Add table
Add a link
Reference in a new issue