Crate komichi

source ·
Expand description

§小道 Komichi

komichi is a collection of tools to make working with file-system paths more convenient.

§Features, include but are not limited to:

  • Uses camino paths so that an application, using this crate, can treat paths like normal Rust string-like types.
  • EnvVal provides the ability to retrieve environment variable values and use a default value if the environment variable does NOT exist or have a value.
  • Expand provides a relatively-fast ability to expand unicode-paths that:
    • may contain BASH-like variables; and
    • may start with a tilde; and
    • may not be absolute.
  • Local can provide application local ($HOME) path directory locations for:
    • cache files
    • config files
    • data files
    • log files
    • state files

Modules§

Structs§

  • Used to acquire an environment variable value with a fallback value.
  • Expand identifiers in paths.
  • Return path locations for a given application name from a local perspective.

Functions§