The official way to get Rustfmt to skip an item is #[rustfmt::skip]
, however I want it to skip an entire file. I tried this:
#![rustfmt::skip]
However you get this error
error[E0658]: non-builtin inner attributes are unstable
Here is the issue for that error.
Is there a workaround for this? Solutions I am not interested in:
- Use unstable Rust
- Tell Rustfmt not to process the file using something external to the file (
rustfmt.toml
for example)