kibi/
lib.rs

1// SPDX-FileCopyrightText: 2020 Ilaï Deutel & Kibi Contributors
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5//! # Kibi
6//!
7//! Kibi is a text editor in ≤1024 lines of code.
8
9pub use crate::{config::Config, editor::run, error::Error, sys::stdin};
10
11pub mod ansi_escape;
12mod config;
13mod editor;
14mod error;
15mod row;
16mod syntax;
17mod terminal;
18
19#[cfg_attr(windows, path = "windows.rs")]
20#[cfg_attr(any(unix, target_os = "twizzler"), path = "unix.rs")]
21#[cfg_attr(target_os = "wasi", path = "wasi.rs")]
22mod sys;
23
24#[cfg(any(unix, target_os = "wasi", target_os = "twizzler"))]
25mod xdg;