Expand description
Utility functions and shared types used across the crate.
This module contains localization message structures, logging helpers, translation loading, file comparison helpers and the core incremental copying implementation. Public items are documented with examples where relevant.
Structs§
- Exclude
Matcher - Pattern matcher for exclude lists.
- Messages
- Localizable messages loaded from
assets/translations.json.
Functions§
- build_
exclude_ matcher - Build an
ExcludeMatcherfrom a list of glob patterns. - clear_
terminal - Clear the entire terminal screen.
- copy_
incremental - Perform an incremental copy from
src_dirtodest_dir. - create_
logger - Create an optional logger for the provided path.
- is_
newer - Return true if
srcis newer thandest(based on filesystem modification time). - load_
translations - Load the embedded translations JSON and deserialize it.
Type Aliases§
- Logger
- Thread-safe file logger type:
Arc<Mutex<BufWriter<File>>>. - Translations
- Type alias for the translations map loaded from JSON.