genemichaels
prettyplease
Our great sponsors
genemichaels | prettyplease | |
---|---|---|
5 | 8 | |
80 | 587 | |
- | - | |
0.0 | 7.7 | |
7 months ago | 10 days ago | |
Rust | Rust | |
ISC License | Apache License 2.0 |
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.
genemichaels
-
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
prettyplease
-
Practical Procedural Macros in Rust
Nice blog, another very useful crate to use when working with proc-macro is https://github.com/dtolnay/prettyplease, for formatting generated code (very useful for debugging!), that does not bails out like rustfmt sometimes does.
-
Minimalist Rust formatter as an alternative to rustfmt?
I doubt you would want to actually use this human-consumed code, but an interesting alternative that I know of is David Tolnay's prettyplease. It tries to be lightweight and consistent for auto-generated code.
-
Gene Michaels: Alternative Rust code formatter
btw there is also https://github.com/dtolnay/prettyplease
-
Anyone have lot's of problems with rustfmt?
This, I also have a bunch of files that seem to break rustfmt. Ime, it doesn't exactly refuse to format the whole file but it's picky in what and to what degree it chooses to format, basically anything flying in the complex blocks. I have run into prettyplease but I'm yet to actually try it on these offenders.
-
Hey Rustaceans! Got an easy question? Ask here (5/2022)!
prettyplease
-
Is generating code from JSON a good macro use case?
Optionally, format the generated code to make it more readable. You can run rustfmt on the output file, or use prettyplease before writing the file.
- Prettyp lease: A minimal Syn syntax tree pretty- printer
- prettyplease: A minimal Syn syntax tree pretty-printer
What are some alternatives?
octocrab - A modern, extensible GitHub API Client for Rust.
prettier-plugin-rust - Prettier Rust is an opinionated code formatter that autocorrects bad syntax.
rfcs - RFCs for changes to Rust
quote - Rust quasi-quoting
libass - libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format.
tokio-tungstenite - Future-based Tungstenite for Tokio. Lightweight stream-based WebSocket implementation
rosetta - Easy to use Rust i18n library based on code generation
rouille - Rust programming, in French.
topiary
abomonation - A mortifying serialization library for Rust
ambassador - Delegation of trait implementations via procedural macros