Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge. Learn more →
Top 13 Rust Formatter Projects
-
The new style still supports single line let-else, and there is a configuration parameter to make it be on one line also for longer lines.
-
biome
A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
Biome is also working on a feature to only format changed files. See the associated PR [0] for more details.
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
Project mention: How do I stop Prettier from de-structuring object properties onto separate lines? | /r/learnjavascript | 2023-06-14
Prettier is opinionated. dprint is highly configurable.
-
-
You might find useful this: https://github.com/tamasfe/taplo
-
-
In the same vein as LSP/pre-commit/Ruff/Black, I found the treefmt (rust) project very promising.
-
Onboard AI
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
-
https://github.com/lukas-reineke/cbfmt also exists as a standalone tool for this
-
Project mention: Is rustfmt abandoned? Will it ever format `let ... else` syntax? | /r/rust | 2023-06-03
Same code formatted by Prettier Rust
-
sleek
Sleek is a CLI tool for formatting SQL. It helps you maintain a consistent style across your SQL code, enhancing readability and productivity. (by nrempel)
Project mention: What SQL formatter do you use? What can give you Intellij like formatting for SQL? | /r/neovim | 2023-04-19 -
There are alternatives to rustfmt: Prettier Rust and genemichaels
-
Project mention: UnTeX - Parsing and formatting TeX documents with Rust - Looking for help | /r/rust | 2023-01-27
Currently, UnTeX is still in beta, and only few commands are implemented. I recommend you read the README or the docs if you are interested in knowing more :-) I think the core foundations are already there.
-
Rust Formatter related posts
- BiomeJS
- Biome - Lightning fast JS/TS linter and formatter
- Biome
- Is rustfmt abandoned? Will it ever format `let ... else` syntax?
- Rome v12.1: a Rust-based linter formatter for TypeScript, JSX and JSON
- Rustfmt refusing to work with certain functions.
- I made a SQL formatter CLI
-
A note from our sponsor - InfluxDB
www.influxdata.com | 2 Dec 2023
Index
What are some of the best open-source Formatter projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | rustfmt | 5,489 |
2 | biome | 4,102 |
3 | dprint | 2,625 |
4 | StyLua | 1,199 |
5 | taplo | 950 |
6 | nixpkgs-fmt | 495 |
7 | treefmt | 393 |
8 | cbfmt | 151 |
9 | prettier-plugin-rust | 144 |
10 | sleek | 76 |
11 | genemichaels | 74 |
12 | untex | 24 |
13 | tyupy | 7 |