capri-core: add crate root

This commit is contained in:
nocode committed 2026-11-11 20:20:47 +01:00
1 parent 400d9dbb95
commit 91fa15a1d6
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
//! 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()
}