src/lib.rs 1.1 KiB raw
1
//! Umbrella crate that re-exports Rustik facade crates.
2
//!
3
//! Use `rustik::tui::*` for the full facade API. Enable `widgets` to forward
4
//! to `rustik-tui`’s optional `widgets` feature, or `highlight` to re-export
5
//! the `rustik-highlight` parser/highlighter crate.
6
//!
7
#![deny(unsafe_code)]
8
#![warn(missing_docs)]
9
#![warn(clippy::unwrap_used)]
10
11
/// Plain string formatting helpers.
12
pub mod fmt;
13
14
/// Launch the user's configured editor for text input.
15
// The Unix backend duplicates the stderr file descriptor, which requires `unsafe`.
16
#[allow(unsafe_code)]
17
pub mod editor;
18
19
/// Line editing with history and cursor movement.
20
#[allow(unsafe_code)]
21
pub mod readline;
22
23
/// Numerical traits used by the random number generator.
24
pub mod math;
25
26
/// Random number generation using the WyRand algorithm.
27
#[allow(unsafe_code)]
28
pub mod rng;
29
30
/// Re-export of the facade crate.
31
pub use rustik_tui as tui;
32
33
/// Re-export of the unified diff parser and viewer crate.
34
#[cfg(feature = "diff")]
35
pub use rustik_diff as diff;
36
37
/// Re-export of the TextMate grammar parser and highlighter crate.
38
#[cfg(feature = "highlight")]
39
pub use rustik_highlight as highlight;