-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc(contrib): move cargo fmt notes to CODE_STYLE.md
- Loading branch information
1 parent
d7680e3
commit cd15469
Showing
2 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Code Style | ||
|
||
hyper uses the default configuration of `rustfmt`. | ||
|
||
## cargo fmt | ||
|
||
`cargo fmt --all` does not work in hyper. Please use the following commands: | ||
|
||
```txt | ||
# Mac or Linux | ||
rustfmt --check --edition 2018 $(git ls-files '*.rs') | ||
# Powershell | ||
Get-ChildItem . -Filter "*.rs" -Recurse | foreach { rustfmt --check --edition 2018 $_.FullName } | ||
``` | ||
|
||
> **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: | ||
> | ||
> ```json | ||
> "rust-analyzer.cargo.features": ["full"], | ||
> "rust-analyzer.check.features": ["full"], | ||
> ``` |
cd15469
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'end_to_end'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.http2_parallel_x10_req_10kb_100_chunks_adaptive_window
24040801
ns/iter (± 18412803
)7891073
ns/iter (± 323924
)3.05
This comment was automatically generated by workflow using github-action-benchmark.