Rust Formatter

Open-source Rust projects categorized as Formatter

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.

    Project mention: Biome.js, a toolchain to format and lint your web project | dev.to | 2024-11-09

    { "$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.

    CodeRabbit logo
  • rustfmt

    Format Rust code

    Project mention: You can't do that because I hate you | news.ycombinator.com | 2023-12-28

    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...

  • dprint

    Pluggable and configurable code formatting platform written in Rust.

    Project mention: dprint: Pluggable and configurable code formatting platform written in Rust | news.ycombinator.com | 2024-06-15
  • StyLua

    An opinionated Lua code formatter

  • taplo

    A TOML toolkit written in Rust

  • tinymist

    Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].

    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...

  • tex-fmt

    An extremely fast LaTeX formatter written in Rust

    Project mention: tex-fmt: An extremely fast LaTeX formatter written in Rust | dev.to | 2024-08-29

    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

    SaaSHub logo
  • prettier-plugin-rust

    Prettier Rust is an opinionated code formatter that autocorrects bad syntax.

    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)

  • cbfmt

    A tool to format codeblocks inside markdown and org documents.

  • genemichaels

    Even formats macros

    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

  • display_tree

    Simple, automatic, and customizable tree pretty-printing in Rust.

  • pretty_yaml

    Semi-tolerant and configurable YAML formatter with dprint integration.

    Project mention: Yet another configurable YAML formatter written in Rust | news.ycombinator.com | 2024-08-15
  • mdsf

    Format markdown code blocks using your favorite code formatters.

    Project mention: Show HN: Mdsf, a Codeblock Formatter for Markdown | news.ycombinator.com | 2024-11-08
  • tyupy

    Get URL(s) title in any format 🐿️

    Project mention: Tyupy v1.1.0 released! 🎉 | /r/rust | 2023-11-21
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Formatter discussion

Log in or Post with

Rust Formatter related posts

  • Biome.js, a toolchain to format and lint your web project

    1 project | dev.to | 9 Nov 2024
  • Show HN: Mdsf, a Codeblock Formatter for Markdown

    1 project | news.ycombinator.com | 8 Nov 2024
  • Biomejs – one toolchain for your web project

    1 project | news.ycombinator.com | 19 Sep 2024
  • dprint: Pluggable and configurable code formatting platform written in Rust

    1 project | news.ycombinator.com | 15 Jun 2024
  • Biome – fast JavaScript linter and formatter

    1 project | news.ycombinator.com | 8 Apr 2024
  • Rescuing legacy Node.js projects with Bun

    1 project | dev.to | 6 Apr 2024
  • What is the most useful project you've ever worked on?

    4 projects | news.ycombinator.com | 6 Apr 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 13 Nov 2024
    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 →

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

Sponsored
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.
coderabbit.ai

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?