Skip to content
SPECIFICTION
Get listed

rustfmt vs Taplo

rustfmt

rust-lang.github.io

Taplo

taplo.tamasfe.dev

Side by side

FigurerustfmtTaplo
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
API—Yes
Plans published11
Spec score · Code Formatting Tools8.0 (#10)7.6 (#24)
Purposerustfmt formats Rust code according to style guidelines.Taplo is a TOML toolkit for validating, formatting, and querying TOML documents.

Plans

rustfmt

  • rustfmtFree

rustfmt pricing →

Taplo

  • TaploFree

Taplo pricing →

In their own words

rustfmt

rustfmt formats Rust code according to style guidelines. It can format files directly or read code from standard input and write formatted output to standard output. With Cargo, `cargo fmt` formats binary and library targets in a crate and works with workspaces. A `rustfmt.toml` or `.rustfmt.toml` file can hold configuration, including stable and nightly-only options. For automated checks, `--check` returns code 0 when no formatting changes are needed and code 1 when changes would be made; it can be used in CI to fail a build on formatting differences. The README lists editor use with Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, IntelliJ, and CLion. Rustfmt is available on Windows, macOS, and Linux, and is distributed under the MIT License and Apache License 2.0. It does not attempt to format comments, and listed limitations also involve macros, unparsable code, fragments, and non-ASCII Unicode. Unstable settings require opt-in on nightly, and the README says the latest version requires the nightly toolchain.

Visit rust-lang.github.io

Taplo

Taplo is a free toolkit for validating, formatting, and querying TOML documents, with support for TOML 1.0.0. Its validator checks syntax and semantic issues such as duplicate keys, and can apply JSON Schema Draft 4 validation. The formatter can edit files in place or use standard input and output; by default, it stops when syntax errors occur to avoid destructive edits. The CLI also converts TOML to JSON and retrieves values through query expressions. Taplo’s language server communicates through standard input/output or TCP, though multiple TCP clients are not supported. It is excluded from default builds and is unavailable in the NPM installation. The Even Better TOML Visual Studio Code extension adds highlighting, validation, folding, navigation, renaming, formatting, and JSON Schema completion; its listing calls it a preview that may contain bugs or crash. Taplo can retrieve schemas from catalogs such as JSON Schema Store and match them to files by name. Install options include precompiled releases, Cargo, Homebrew, NPM, and Docker; precompiled releases are listed for Linux, macOS, and Windows.

Visit taplo.tamasfe.dev