Skip to content
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

codegen: rustfmt automatically #15

Open
joleeee opened this issue Oct 18, 2022 · 1 comment
Open

codegen: rustfmt automatically #15

joleeee opened this issue Oct 18, 2022 · 1 comment

Comments

@joleeee
Copy link

joleeee commented Oct 18, 2022

When I generate bindings they are not automatically formatted

@samcrow
Copy link
Owner

samcrow commented Oct 19, 2022

Thanks for suggesting this. I added a --rustfmt option in canadensis_codegen_rust 0.3.2 that just runs rustfmt on the generated code.

I'm also open to enabling that by default. The main part I'm not sure about is what should happen if rustfmt is not available: an error, a warning message, or silent failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants