Skip to main content

mermaid_cli/utils/
mod.rs

1// Gateway module for utils - follows the Train Station Pattern
2// All external access must go through this gateway
3
4// Private submodules - not directly accessible from outside
5mod checks;
6mod logger;
7mod mutex_ext;
8mod open;
9mod retry;
10mod text;
11mod timestamp;
12mod tokenizer;
13
14// Public re-exports - the ONLY way to access utils functionality
15pub use checks::{CheckResult, check_ollama_available, check_ollama_model};
16pub use logger::{init_logger, log_debug, log_error, log_info, log_progress, log_warn};
17pub use mutex_ext::{MutexExt, lock_arc_mutex_safe};
18pub use open::open_file;
19pub use retry::{RetryConfig, retry_async};
20pub use text::{format_tokens, truncate_content, truncate_web_content};
21pub use timestamp::format_relative_timestamp;
22pub use tokenizer::Tokenizer;