-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a custom source code formatter to replace rust-fmt
#303
Conversation
Just wondering, would prettyplease fit in here? |
API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-303 |
We considered it, but it takes a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for this! The output code looks really much nicer 🙂
The test-cases
directory is mostly for benchmarking, right? Do the 5 files differ substantially, or could we do with just 3 or so? (Asking because they add 0.5 MB to the repo forever; even if compressed in Git).
Also, I don't see the formatting time output in *stats.txt
files, would it be possible to include that again?
Generated code looks very messy when not formatted, `rustfmt` take a lot of time to format the code, so this crate implements a reduced formatter that's supposed to run fast enough that it can be part of the regular build process.
I addressed the review comments! Thanks! Because of the way Comparing the total time in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this! The benchmarking and StopWatch
measurements can be addressed at a later time.
bors r+
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Generated code looks very messy when not formatted,
rustfmt
take a lot of time to format the code, so this crateimplements a reduced formatter that's supposed to run fast enough
that it can be part of the regular build process.
TODOs:
StopWatch
so the timing summary makes sense again