Skip to content

Commit 92d7d7a

Browse files
committed
add
Signed-off-by: husharp <[email protected]>
1 parent 429ad8a commit 92d7d7a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

CONTRIBUTING.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@ You want to contribute? You're awesome! Don't know where to start? Check the [li
44

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

7-
87
## [Pull Requests](./docs/PULL_REQUESTS.md)
98

109
- [Submitting a Pull Request](./docs/PULL_REQUESTS.md#submitting-a-pull-request)
1110
- [Commit Guidelines](./docs/COMMITS.md)
1211

1312
## Cargo fmt
13+
1414
`cargo fmt --all` does not work in hyper. Please use the following commands:
15+
1516
```txt
1617
# Mac or Linux
1718
rustfmt --check --edition 2018 $(git ls-files '*.rs')
1819
1920
# Powershell
2021
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName }
21-
```
22+
```
23+
24+
> **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:
25+
>
26+
> ```json
27+
> "rust-analyzer.cargo.features": "full",
28+
> "rust-analyzer.check.features": "full",
29+
> ```

0 commit comments

Comments
 (0)