tui_textarea_julien_cpsn/
lib.rs

1#![forbid(unsafe_code)]
2#![allow(clippy::needless_range_loop)]
3#![warn(clippy::dbg_macro, clippy::print_stdout)]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![doc = include_str!("../README.md")]
6
7#[cfg(all(feature = "ratatui", feature = "tuirs"))]
8compile_error!("ratatui support and tui-rs support are exclusive. only one of them can be enabled at the same time. see https://github.com/rhysd/tui-textarea#installation");
9
10mod cursor;
11mod highlight;
12mod history;
13mod input;
14mod scroll;
15#[cfg(feature = "search")]
16mod search;
17mod textarea;
18mod util;
19mod widget;
20mod word;
21#[cfg(feature = "syntax-highlighting")]
22mod syntax_highlighting;
23
24#[cfg(feature = "ratatui")]
25#[allow(clippy::single_component_path_imports)]
26use ratatui;
27#[cfg(feature = "tuirs")]
28use tui as ratatui;
29
30#[cfg(feature = "crossterm")]
31#[allow(clippy::single_component_path_imports)]
32use crossterm;
33#[cfg(feature = "tuirs-crossterm")]
34use crossterm_025 as crossterm;
35
36pub use cursor::CursorMove;
37pub use input::{Input, Key};
38pub use scroll::Scrolling;
39pub use textarea::TextArea;