mfmt

GitHub Action Crate License

Meta formatter library in Rust

mfmt is a language formatter library written in Rust inspired by go fmt. It's designed to be (almost) configuration-free and generous about styling. What it is focused on is simply aligning indentations.

This library is used in the following projects.

Technical notes

Unlike the Wadler's algorithm or some other formatters like prettier, mfmt does not search the best format given source codes. For example, we do not have any "group" combinator. Instead, we rather give mfmt information to reconstruct the "best" format that is available in the original source codes like Go.

References

License

The Unlicense