Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →
Top 15 Rust Formatter Projects
-
biome
A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
{ "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", "organizeImports": { "enabled": true }, "formatter": { "enabled": true, "indentWidth": 2, "indentStyle": "space" }, "linter": { "enabled": true, "rules": { "recommended": true, "a11y": { "noSvgWithoutTitle": "off", "useButtonType": "off", "useAltText": "off" }, "complexity": { "noBannedTypes": "off" }, "style": { "useImportType": "error", "useExportType": "error" } } }, "overrides": [ { "include": ["**/*.test.ts"], "linter": { "rules": { "suspicious": { "noExplicitAny": "off" } } } } ], "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true } }
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
The author provides very surface-level criticism of two Rust tools, but they don't look into why those choices were made.
With about five minutes of my time, I found out:
wrap_comments was introduced in 2019 [0]. There are bugs in the implementation (it breaks Markdown tables), so the option hasn't been marked as stable. Progress on the issue has been spotty.
--no-merge-sources is not trivial to re-implement [1]. The author has already explained why the flag no longer works -- Cargo integrated the command, but not all of the flags. This commit [2] explains why this functionality was removed in the first place.
Rust is open source, so the author of this blog post could improve the state of the software they care about by championing these issues. The --no-merge-sources error message even encourages you to open an issue, presumably so that the authors of Cargo can gauge the importance of certain flags/features.
You could even do something much simpler, like adding a comment to the related issues mentioning that you ran into these rough edges and that it made your life a little worse, or with a workaround that you found.
Alternatively, you can continue to write about how much free software sucks.
[0]: https://github.com/rust-lang/rustfmt/issues/3347
[1]: https://github.com/rust-lang/cargo/pull/10344
[2]: https://github.com/rust-lang/cargo/commit/3842d8e6f20067f716...
-
Project mention: dprint: Pluggable and configurable code formatting platform written in Rust | news.ycombinator.com | 2024-06-15
-
-
-
Project mention: Exploring Typst, a new typesetting system similar to LaTeX | news.ycombinator.com | 2024-10-12
Writing Typst in Emacs is pretty easy with this setup.
https://codeberg.org/meow_king/typst-ts-mode/wiki/
https://github.com/Myriad-Dreamin/tinymist/tree/main/editors...
-
I am working on tex-fmt, a new and extremely fast LaTeX formatter written in Rust. It can be installed through Cargo. It offers a command line tool for formatting/pretty-printing LaTeX source code, and runs hundreds of times faster than existing tools.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Project mention: Oxlint – written in Rust – 50-100 Times Faster than ESLint | news.ycombinator.com | 2023-12-15
-
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: Oxlint – written in Rust – 50-100 Times Faster than ESLint | news.ycombinator.com | 2023-12-15
Python and JavaScript have similarly good formatters (as long as your idiot colleagues don't insist on using yapf instead of Black, despite yapf producing non-deterministic output!). In fact I would say Rust is probably behind Prettier in terms of auto formatting. The rustfmt output is less pretty (subjective I know), the devs have made several strange decisions and it seems to be semi-abandoned (maybe partly because the devs were ... shall we say not as friendly and welcoming as the Rust community likes to bleat on about).
There are a couple of alternative formatters:
* https://github.com/andrewbaxter/genemichaels
-
-
Project mention: Yet another configurable YAML formatter written in Rust | news.ycombinator.com | 2024-08-15
-
Project mention: Show HN: Mdsf, a Codeblock Formatter for Markdown | news.ycombinator.com | 2024-11-08
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Rust Formatter discussion
Rust Formatter related posts
-
Biome.js, a toolchain to format and lint your web project
-
Show HN: Mdsf, a Codeblock Formatter for Markdown
-
Biomejs – one toolchain for your web project
-
dprint: Pluggable and configurable code formatting platform written in Rust
-
Biome – fast JavaScript linter and formatter
-
Rescuing legacy Node.js projects with Bun
-
What is the most useful project you've ever worked on?
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 13 Nov 2024
Index
What are some of the best open-source Formatter projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | biome | 15,333 |
2 | rustfmt | 6,027 |
3 | dprint | 3,223 |
4 | StyLua | 1,599 |
5 | taplo | 1,442 |
6 | tinymist | 750 |
7 | tex-fmt | 245 |
8 | prettier-plugin-rust | 178 |
9 | sleek | 173 |
10 | cbfmt | 165 |
11 | genemichaels | 85 |
12 | display_tree | 30 |
13 | pretty_yaml | 21 |
14 | mdsf | 17 |
15 | tyupy | 7 |