codemp/src/api/mod.rs
alemi 39533ae086
feat: wrappers for Cursor and Op
so plugins dont need to interact directly with our underlying proto
struct, nor our underlying crdt ops. also for wrapping directly in glue
2024-08-05 19:15:30 +02:00

19 lines
499 B
Rust

//! # api
//!
//! these traits represent the internal api for the codemp library.
//! more methods and structs are provided but these are the core interfaces to
//! interact with the client.
/// a generic async provider for bidirectional communication
pub mod controller;
/// a generic representation of a text change
pub mod change;
/// representation for an user's cursor
pub mod cursor;
pub use controller::Controller;
pub use change::TextChange;
pub use change::Op;
pub use cursor::Cursor;