Crate treefmt[][src]

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

Mtime represents a unix epoch file modification time

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