telarex_core/lib.rs
1//! TelaRex Core — shared logic, state management, and all subsystems.
2//!
3//! This crate is the engine of TelaRex. It provides:
4//! - **Buffer management** — document editing, undo/redo, macros, and motions
5//! - **Syntax highlighting** — Tree-sitter-based highlighting with themeable stylesheets
6//! - **Configuration** — TOML-based settings with schema validation and theme engine
7//! - **Networking** — P2P lodge discovery and sync via libp2p (gossipsub, mDNS, Kademlia)
8//! - **CRDT** — Automerge-based document synchronization for collaborative editing
9//! - **Actor system** — async buffer actor for thread-safe buffer access
10//! - **Workspace** — shared workspace (lodge) model with member/join management
11//! - **LSP** — Language Server Protocol client for completions and diagnostics
12//! - **Database** — SQLite persistence for lodges, sessions, and recent projects
13//! - **Errors** — typed error framework with codes, levels, and suggested solutions
14#![allow(dead_code)]
15pub mod buffer;
16pub mod clipboard;
17pub mod command;
18#[cfg(feature = "git")]
19pub mod git_sidecar;
20pub mod config;
21pub mod crdt;
22pub mod syntax;
23pub mod workspace;
24pub mod actor;
25pub mod lsp;
26pub mod database;
27pub mod network;
28pub mod errors;