Skip to content

Commit 965f968

Browse files
github-actionsseanmonstar
authored andcommitted
doc: update contrib docs
1 parent 769f30e commit 965f968

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

_contrib/contributing.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,26 @@ You want to contribute? You're awesome! Don't know where to start? Check the [li
88

99
[easy tag]: https://github.com/hyperium/hyper/issues?q=label%3AE-easy+is%3Aopen
1010

11-
1211
## [Pull Requests](pull-requests.md)
1312

1413
- [Submitting a Pull Request](pull-requests.md#submitting-a-pull-request)
1514
- [Commit Guidelines](commits.md)
1615

1716
## Cargo fmt
17+
1818
`cargo fmt --all` does not work in hyper. Please use the following commands:
19+
1920
```txt
2021
# Mac or Linux
2122
rustfmt --check --edition 2018 $(git ls-files '*.rs')
2223
2324
# Powershell
2425
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName }
25-
```
26+
```
27+
28+
> **NOTE**: If you are using `rust-analyzer`, you can add the following two lines in your `settings.json` to make sure the features get taken into account when checking the project:
29+
>
30+
> ```json
31+
> "rust-analyzer.cargo.features": ["full"],
32+
> "rust-analyzer.check.features": ["full"],
33+
> ```

0 commit comments

Comments
 (0)