So I am generating bindings for a library and on top of that I'm generating most of the safe wrappers for that library.
The way I'm doing is simply generating a String with all the contents and writing to the file with the File trait...
I know the bindings crate supports formatting the generated code, but this particular one is not generated by it. Is there a way to make the build.rs call rustfmt on that generated file?
I found out that rust bindgen uses a regular command call. I thought it was doing through some kind of rustfmt library. Reference: https://docs.rs/bindgen/0.51.1/src/bindgen/lib.rs.html#1945
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With