Skip to main content

yoctui_utils/
lib.rs

1//! Domain-independent platform, text and time helpers shared across Yoctui.
2mod paths;
3mod process;
4mod text;
5mod time;
6mod validation;
7
8pub use paths::{config_dir, home_dir, home_path, path_entry_exists, state_dir};
9pub use process::{ProcessGroupGuard, is_transient_spawn_error, lower_process_priority};
10pub use text::{
11    append_truncation_marker, is_csi_final_byte, push_bounded, strip_ansi, truncate_utf8,
12    utf8_prefix,
13};
14pub use time::{format_duration, poll_timeout_ms, unix_ms};
15pub use validation::{
16    is_absolute_normal_path, is_absolute_normal_path_within, is_bounded_identifier,
17    is_bounded_plain_text, push_unique_bounded,
18};