capri-core: add crate root
This commit is contained in:
1 file changed
+16
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user