goformat
Alternative to gofmt with configurable formatting style (indentation etc.) (by mbenkmann)
genemichaels
Even formats macros (by andrewbaxter)
goformat | genemichaels | |
---|---|---|
7 | 5 | |
20 | 80 | |
- | - | |
0.0 | 0.0 | |
almost 6 years ago | 8 months ago | |
Go | Rust | |
BSD 3-clause "New" or "Revised" License | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
goformat
Posts with mentions or reviews of goformat.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-19.
-
Minimalist Rust formatter as an alternative to rustfmt?
Likewise, gofmt implementing what you argue for resulted in the creation of goformat. There's a limit to how much you can force people on these things and, more importantly, there are formatting decisions which are more than mere bikeshedding in the eyes of the programmers to the point where they consider it more productive to maintain the formatting by hand if that's what it takes.
-
Go is better than Rust (for networked server side applications meant for scale)?
I'm the guy who would only run rustfmt once every week or so, when my codebase was in a clean state where I could use git gui to cherry-pick the changes that were in line with my stubborn insistence on my own style and revert the rest. I'm also the guy who would have considered writing goformat if someone else didn't.
-
Why is rust so pedantic about code formatting and style?
Enough people disagree with that for goformat to exist.
-
rustfmt opt-in instead of opt-out
Same. I used to insist on cargo +nightly rustfmt and a massive stable of "I don't have a portrait-oriented monitor" rustfmt.toml tweaks which I'd only apply when I have a clean git gui on hand to cherry-pick away unwanted changes, but I've mellowed out and the rustfmt handling of things like assert! has evolved so, now, I just put use_small_heuristics = "Max" in my rustfmt.toml as an analogue to the people who choose goformat over gofmt.
-
Need a line-preserving gofmt tool
anyways, regardless of what I think, perhaps this library could help? Or at least be a good starting point to build your own: https://github.com/mbenkmann/goformat
-
What do you NOT like about Rust?
You'd prefer that people like me follow the road the Go ecosystem did and write goformat as a replacement for gofmt or just continue to hand-format everything?
-
Why most rustfmt options are still unstable?
Because Go syntax is ridiculously simple, there's not much room for opinion. And even considering that, there is already an alternative gofmt with custom options.
genemichaels
Posts with mentions or reviews of genemichaels.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-15.
-
Oxlint – written in Rust – 50-100 Times Faster than ESLint
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
-
Minimalist Rust formatter as an alternative to rustfmt?
There are alternatives to rustfmt: Prettier Rust and genemichaels
-
The most creative, funny, clever, ridiculous, ... library names!
Gene Michaels, code formatter
-
How do you name your crates?
I think we should all take inspiration from Gene Michaels and just start naming crates after random people.
- Gene Michaels: Alternative Rust code formatter
What are some alternatives?
When comparing goformat and genemichaels you can also consider the following projects:
serenity - A Rust library for the Discord API.
octocrab - A modern, extensible GitHub API Client for Rust.
project-error-handling - Error handling project group
rfcs - RFCs for changes to Rust
prettier-plugin-rust - Prettier Rust is an opinionated code formatter that autocorrects bad syntax.
libass - libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format.
rustfmt - Format Rust code
rust-cpython - Rust <-> Python bindings
rouille - Rust programming, in French.
PyO3 - Rust bindings for the Python interpreter
abomonation - A mortifying serialization library for Rust
goformat vs serenity
genemichaels vs octocrab
goformat vs project-error-handling
genemichaels vs rfcs
goformat vs prettier-plugin-rust
genemichaels vs libass
goformat vs rustfmt
genemichaels vs prettier-plugin-rust
goformat vs rust-cpython
genemichaels vs rouille
goformat vs PyO3
genemichaels vs abomonation