Hacker GitHub

← All repos

rust-lang/rustfmt

View on GitHub ↗ ★ 7,012 Rust

Format Rust code

20 mentions on Hacker News by 19 people: 2 stories, 18 comments · first 2016-03-04 · latest 2025-08-22

Mentions per year 20 mentions · busiest year 2018 (4)
20082026
  1. …to discover a formatter" versus "I want to format my code, and my tool already has that"). [1]: https://github.com/rust-lang/rustfmt
    comment by woodruffw · 2025-08-22 · in Code formatting comes to uv experimentally
  2. …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
    comment by steveklabnik · 2025-02-21 · in Announcing Rust 1.85.0 and Rust 2024
  3. …- /* prettier-ignore */: https://prettier.io/docs/en/ignore.html#javascript - #[rustfmt::skip]: https://github.com/rust-lang/rustfmt?tab=readme-ov-file#tips
    comment by tczMUFlmoNk · 2024-06-17 · in Reformatting 100k Files at Google in 2011
  4. …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]:…
    comment by shepherdjerred · 2023-12-28 · in You can't do that because I hate you
  5. …breaks work syntax, like https://github.com/rust-lang/rust-analyzer/blob/master/crate... , https://github.com/rust-lang/rustfmt/blob/master/tests/sourc... , https://github.com/rust-lang/rust/blob/master/src/tools/rust... ,…
    comment by eesmith · 2022-09-04 · in Python multi-level break and continue
  6. For example: https://github.com/rust-lang/rustfmt
  7. …so I can get off of nightly and still have a break before else statements (aka "ClosingNextLine"): https://github.com/rust-lang/rustfmt/issues/3377
    comment by AlchemistCamp · 2020-12-17 · in State of Rust Survey 2020 results
  8. …broken for subdirectory in Druid because of the use of a `cfg_if!` macro. We filed a bug ( https://github.com/rust-lang/rustfmt/issues/4266 ) but it got closed without (as far as I can tell) actually being fixed. Our present approach is to…
    comment by raphlinus · 2020-09-16 · in Challenging LR Parsing
  9. …and rustfmt[2]. [0]: https://prettier.io [1]: https://github.com/apple/swift-format [2]: https://github.com/rust-lang/rustfmt
  10. …to format a line within 100 characters since switching to the nightly version a month or so back. https://github.com/rust-lang-nursery/rustfmt/blob/master/Con...
    comment by saghm · 2018-02-15 · in Rust 1.24
  11. …the community agrees on, in the same way that the Go community has by and large agreed on gofmt? https://github.com/rust-lang-nursery/rustfmt And is planned to be distributed with the compiler and the cargo stack by default
    comment by aplanas · 2018-01-22 · in Why is Rust difficult?
  12. There is rustfmt https://github.com/rust-lang-nursery/rustfmt though it is a work in progress: https://github.com/rust-lang-nursery/fmt-rfcs
    comment by DougBTX · 2018-01-22 · in Why is Rust difficult?
  13. rustfmt https://github.com/rust-lang-nursery/rustfmt
    comment by timClicks · 2018-01-22 · in Why is Rust difficult?
  14. https://github.com/rust-lang-nursery/rustfmt It should be distributed along with the rest of the tooling in the coming months!
    comment by steveklabnik · 2017-09-27 · in Why did we choose Rust to develop TiKV?
  15. …[1]: https://github.com/google/google-java-format [2]: https://github.com/google/yapf [3]: https://github.com/rust-lang-nursery/rustfmt
  16. …code in the most "Rustic" way, but in terms of code formatting, there is already rustfmt[0] [0] https://github.com/rust-lang-nursery/rustfmt
    comment by hackcrafter · 2017-05-05 · in The Rust Libs Blitz
  17. …find definition" > - Syntax checking https://atom.io/packages/linter-rust > - Integrated formatter https://github.com/rust-lang-nursery/rustfmt/blob/master/ato...
    comment by jhasse · 2016-03-04 · in Announcing Rust 1.7
  18. …a spec on how the code should be formatted. I think rust is heading in this direction with rust-fmt https://github.com/rust-lang-nursery/rustfmt
    comment by yitchelle · 2016-03-04 · in Detecting Code Indentation