contributing.md: describe how to configure jj fix to run rustfmt

This commit is contained in:
Martin von Zweigbergk 2025-01-30 10:45:36 -08:00 committed by Philip Metzger
parent d620ef95d1
commit faa689a736

View file

@ -186,6 +186,15 @@ These are listed roughly in order of decreasing importance.
On Linux, you may be able to speed up `nextest` even further by using
the `mold` linker, as explained below.
### Configuring `jj fix` to run `rustfmt`
Run this in the jj repo:
```shell
jj config set --repo fix.tools.rustfmt '{ command = ["rustfmt", "+nightly"], patterns = ["glob:**/*.rs"] }'
```
### Using `mold` for faster tests on Linux
On a machine with a multi-core CPU, one way to speed up