tui_textarea/
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
22#[cfg(feature = "ratatui")]
23#[allow(clippy::single_component_path_imports)]
24use ratatui;
25#[cfg(feature = "tuirs")]
26use tui as ratatui;
27
28#[cfg(feature = "crossterm")]
29#[allow(clippy::single_component_path_imports)]
30use crossterm;
31#[cfg(feature = "tuirs-crossterm")]
32use crossterm_025 as crossterm;
33
34#[cfg(feature = "termion")]
35#[allow(clippy::single_component_path_imports)]
36use termion;
37#[cfg(feature = "tuirs-termion")]
38use termion_15 as termion;
39
40pub use cursor::CursorMove;
41pub use input::{Input, Key};
42pub use scroll::Scrolling;
43pub use textarea::TextArea;