Crate treefmt[−][src]
Your favorite all-in-one formatter tool!
Modules
command | CLI command structures for formatter |
config | Contains the project configuration schema and parsing |
customlog | Fancy custom log functionality. |
engine | The main formatting engine logic is in this module. |
eval_cache | Keep track of evaluations |
formatter | Utilities for the formatters themselves. |
Structs
Mtime | Mtime represents a unix epoch file modification time |
Functions
expand_if_path | Only expands the path if the string contains a slash (/) in it. Otherwise consider it as a string. |
expand_path | Returns an absolute path. If the path is absolute already, leave it alone. Otherwise join it to the reference path. Then clean all superfluous ../ |
get_meta_mtime | Small utility that stat() and retrieve the mtime of a file metadata |
get_path_mtime | Small utility that stat() and retrieve the mtime of a file path |