rustfmt
6.7#2 in code formattersFree planFree planLinuxmacOSWindows
Visit| Fact | rustfmt | swift-format |
|---|---|---|
| Configuration | Configuration can be set in `rustfmt.toml` or `.rustfmt.toml`, and the default style conforms to the Rust style guide. | Users can customize supported behavior with a JSON configuration file, and the tool searches parent directories for a .swift-format file. |
| License | rustfmt is distributed under both the MIT License and Apache License 2.0. | The repository identifies its license as Apache-2.0. |
| Purpose | rustfmt formats Rust code according to style guidelines. | swift-format provides formatting technology for Swift source code and building blocks for code formatting transformations. |
rustfmt suits Rust developers who want consistent formatting through Cargo, an editor, or CI. It is also relevant to developers who need configurable formatting behavior.
It suits Swift developers who need command-line formatting, lint checks, package plugins, or library APIs. It is also relevant for SourceKit-LSP integrations.