mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-07 13:00:08 +00:00
contributing.md: describe how to configure jj fix
to run rustfmt
This commit is contained in:
parent
d620ef95d1
commit
faa689a736
1 changed files with 9 additions and 0 deletions
|
@ -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
|
On Linux, you may be able to speed up `nextest` even further by using
|
||||||
the `mold` linker, as explained below.
|
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
|
### Using `mold` for faster tests on Linux
|
||||||
|
|
||||||
On a machine with a multi-core CPU, one way to speed up
|
On a machine with a multi-core CPU, one way to speed up
|
||||||
|
|
Loading…
Reference in a new issue