Files
capri-core-rust/crates/capri-core/src/lib.rs
T
2026-11-11 20:20:47 +01:00

17 lines
431 B
Rust

//! Shared foundations for Capri: XDG paths, settings, safe file I/O and the persona texts.
pub mod avatar;
pub mod fsutil;
pub mod paths;
pub mod persona;
pub mod settings;
pub mod store;
pub use paths::Paths;
pub use settings::{Section, Settings};
pub use store::SettingsStore;
/// Length in UTF-16 code units, the unit Capri 1.0.4 used for every text limit.
pub fn utf16_len(s: &str) -> usize {
s.encode_utf16().count()
}