1pub mod formatter;
2pub mod prompts;
3
4pub mod arc_ext;
5pub mod disposable;
6pub mod iterator_ext;
7pub mod vec_ext;
8pub use itertools;
9
10pub mod security;
11
12#[cfg(feature = "log")]
13pub mod log;
14
15#[cfg(feature = "path-utils")]
16pub mod paths;
17
18#[cfg(feature = "database")]
19pub mod database;
20
21#[cfg(feature = "config")]
22pub mod config;
23
24#[cfg(feature = "ratatui_theme")]
25pub mod ratatui_theme;
26
27#[cfg(feature = "caching")]
28pub mod caching;
29
30#[cfg(feature = "commands")]
31pub mod commands;
32
33#[cfg(feature = "id")]
34pub mod id;
35
36#[cfg(feature = "hash-utils")]
37pub fn hash_file(path: impl AsRef<std::path::Path>) -> std::io::Result<blake3::Hash> {
38 let mut hasher = blake3::Hasher::new();
39 hasher.update_mmap(path)?;
40 Ok(hasher.finalize())
41}