prettyplease
A minimal `syn` syntax tree pretty-printer (by dtolnay)
rosetta
Easy to use Rust i18n library based on code generation (by baptiste0928)
prettyplease | rosetta | |
---|---|---|
8 | 4 | |
588 | 45 | |
- | - | |
7.7 | 3.1 | |
22 days ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | 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.
prettyplease
Posts with mentions or reviews of prettyplease.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-29.
-
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
rosetta
Posts with mentions or reviews of rosetta.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-01.
-
Is generating code from JSON a good macro use case?
I have implemented code generation following these principles with my rosetta-build crate, if you want to see working code: https://github.com/baptiste0928/rosetta/tree/main/rosetta-build
-
Rosetta - Easy-to-use Rust i18n library based on code generation.
Opened an issue for this feature : https://github.com/baptiste0928/rosetta/issues/4
What are some alternatives?
When comparing prettyplease and rosetta you can also consider the following projects:
prettier-plugin-rust - Prettier Rust is an opinionated code formatter that autocorrects bad syntax.
butte
quote - Rust quasi-quoting
country-emoji - Converts between country names, ISO 3166-1 codes and flag emojis.
tokio-tungstenite - Future-based Tungstenite for Tokio. Lightweight stream-based WebSocket implementation
topiary
inkwell - It's a New Kind of Wrapper for Exposing LLVM (Safely)
fluent-templates - Easily add Fluent to your Rust project.
fluent.js - JavaScript implementation of Project Fluent
flapigen-rs - Tool for connecting programs or libraries written in Rust with other languages