Crate treefmt

source ·
Expand description

Your favorite all-in-one formatter tool!

Modules

CLI command structures for formatter
Contains the project configuration schema and parsing
Fancy custom log functionality.
The main formatting engine logic is in this module.
Keep track of evaluations
Utilities for the formatters themselves.

Structs

FileMeta represents file meta that change on file modification It currently stores a file mtime and size tuple.

Functions

Only expands the path if the string contains a slash (/) in it. Otherwise consider it as a string.
Returns an absolute path. If the path is absolute already, leave it alone. Otherwise join it to the reference path. Then clean all superfluous ../
Small utility that stat() and retrieve the mtime of a file metadata
Small utility that stat() and retrieve the mtime of a file path