Skip to content

Commit

Permalink
contributing.md: describe how to configure jj fix to run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonz authored and PhilipMetzger committed Jan 30, 2025
1 parent d620ef9 commit faa689a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faa689a

Please sign in to comment.