this post was submitted on 07 Oct 2025
53 points (100.0% liked)

Rust

7596 readers
13 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

There was recently this article about Linus Torvalds' issues with rustfmt, which prompted others to voice their agreement with his sentiment online.

Yesterday someone pointed out how rustfmt is effectively unmaintained with basically no activity on the repository for months.

The contributors graph shows a similar story - there is essentially no development happening on rustfmt, it seems.

all 18 comments
sorted by: hot top controversial new old
[–] balsoft@lemmy.ml 26 points 2 months ago (1 children)

TBH for personal projects it's almost perfect already. It produces consistent readable code. But yeah it's often not very "mergeable", which is much more important for massive projects with thousands of active committers.

[–] tuxmain@toot.aquilenet.fr 5 points 2 months ago (1 children)

@balsoft @SorteKanin Even if it has been almost perfect in production for years, it must be adapted to follow Rust's new features, there are still some experimental settings, and some features are not completely functional, notably formatting code in macros.

[–] StrikeForceZero@programming.dev 1 points 2 months ago

What I would give to have my attribute macros and their meta/params be formatted when they get unruly 😔

[–] Kissaki@programming.dev 3 points 2 months ago (1 children)

https://doc.rust-lang.org/style-guide/index.html#small-items

We leave it to individual tools to decide on exactly what small means. In particular, tools are free to use different definitions in different circumstances.

What does this mean?

What does Linus when he says rustfmtcheck? cargo fmt check? A util I can't find with a simple search? Maybe they have makefile targets or sth for it?

The concerns raised by Linus make sense to me, but should be simple to solve. The small items description already mentions variance, and the need for tools to decide. So shouldn't it be a simple configuration change?

[–] Tempy@programming.dev 1 points 2 months ago

I think it's a script they added to do some sort of check with rustfmt.

[–] lens0021@programming.dev 1 points 2 months ago

I believe all you already read the reply from the devtools team lead https://github.com/rust-lang/rustfmt/issues/6678#issuecomment-3382819708