rustfmt

Format Rust code (by rust-lang)

Rustfmt Alternatives

Similar projects and alternatives to rustfmt

  1. rust

    2,802 rustfmt VS rust

    Empowering everyone to build reliable and efficient software.

  2. 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
  3. rfcs

    679 rustfmt VS rfcs

    RFCs for changes to Rust

  4. crates.io

    The Rust package registry

  5. book

    651 rustfmt VS book

    The Rust Programming Language

  6. Pandas

    422 rustfmt VS Pandas

    Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

  7. Ansible

    407 rustfmt VS Ansible

    Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

  8. Cargo

    274 rustfmt VS Cargo

    The Rust package manager

  9. SaaSHub

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

    SaaSHub logo
  10. tokio

    219 rustfmt VS tokio

    A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

  11. rust-analyzer

    Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)

  12. rust-analyzer

    A Rust compiler front-end for IDEs

  13. Clippy

    121 rustfmt VS Clippy

    A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/

  14. miri

    124 rustfmt VS miri

    An interpreter for Rust's mid-level intermediate representation

  15. cross

    120 rustfmt VS cross

    “Zero setup” cross compilation and “cross testing” of Rust crates

  16. goreleaser

    Release engineering, simplified

  17. matplotlib

    38 rustfmt VS matplotlib

    matplotlib: plotting with Python

  18. api-guidelines

    Rust API guidelines (by rust-lang)

  19. JRuby

    24 rustfmt VS JRuby

    JRuby, an implementation of Ruby on the JVM

  20. prettier-plugin-rust

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

  21. sublime-rust

    The official Sublime Text 4 package for the Rust Programming Language

  22. SaaSHub

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

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better rustfmt alternative or higher similarity.

rustfmt discussion

Log in or Post with

rustfmt reviews and mentions

Posts with mentions or reviews of rustfmt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-15.
  • Rust 1.85.0 and Rust 2024
    1 project | news.ycombinator.com | 21 Feb 2025
    > I assumed those would be in,

    A new edition doesn't mean features are automatically stabilized.

    I agree with these two specifically, it would be great to have them in stable. They're not yet though: https://github.com/rust-lang/rustfmt/issues/5083

  • Automated Testing and Dev Containers
    7 projects | dev.to | 15 Nov 2024
    Firstly, I added a section to run the code formatter rustfmt and the linter clippy:
  • You can't do that because I hate you
    9 projects | news.ycombinator.com | 28 Dec 2023
    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...

  • Let else will finally be formatted by rustfmt soon
    5 projects | /r/rust | 3 Jul 2023
    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.
  • Is rustfmt abandoned? Will it ever format `let ... else` syntax?
    11 projects | /r/rust | 3 Jun 2023
    It seems there is an issue about this dating all the way back from 2018 but yet it still hasn't been fixed.
  • Hey Rustaceans! Got a question? Ask here (22/2023)!
    10 projects | /r/rust | 29 May 2023
    However since 4179 recent versions should merge configuration files. Not sure what the details / specifics are but if just ignoring the file entirely is not good enough you might give it its own directory and rustfmt.toml file and see if that works.
  • Rustfmt refusing to work with certain functions.
    1 project | /r/rust | 26 Apr 2023
    Could this be be #3863 - Gives up on chains if any line is too long? It might not be, because I can't see a specific "line" that's too long to format, but there's more detail about the exact problem in the issue.
  • Rust Tips and Tricks #PartOne
    3 projects | dev.to | 8 Apr 2023
    Rustfmt is a tool that formats Rust code in compliance with style guidelines. Its name precisely reflects its purpose. To install rustfmt, you can run rustup component add rustfmt. Once installed, you can execute cargo fmt to format Rust code in your workspace. If you require further information, you can visit rustfmt’s GitHub repository.
  • What are some good practices when writing rust?
    2 projects | /r/rust | 28 Feb 2023
    code must be formatted with rustfmt.
  • HTML Limpo
    1 project | /r/brdev | 21 Feb 2023
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 22 Mar 2025
    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 →

Stats

Basic rustfmt repo stats
59
6,210
9.2
10 days ago

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 know that Rust is
the 5th most popular programming language
based on number of references?