File tree 4 files changed +22
-7
lines changed
4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ jobs:
17
17
- uses : actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b
18
18
- uses : actions-rs/toolchain@b223206e28798aa3c3668bdd6409258e6dc29172
19
19
with :
20
- toolchain : nightly-2020-06-02
20
+ toolchain : nightly-2020-07-26
21
21
default : false
22
22
components : rustfmt
23
23
- name : Check style
24
- run : cargo +nightly-2020-06-02 fmt -- --check
24
+ run : cargo +nightly-2020-07-26 fmt -- --check
25
25
26
26
build-and-test :
27
27
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 2
2
"rust-analyzer.rustfmt.overrideCommand" : [
3
3
" rustup" ,
4
4
" run" ,
5
- " nightly-2020-06-02 " ,
5
+ " nightly-2020-07-26 " ,
6
6
" rustfmt"
7
7
]
8
8
}
Original file line number Diff line number Diff line change @@ -16,13 +16,28 @@ $ cargo +nightly doc
16
16
----
17
17
18
18
19
- == Build and run
19
+ == Contributing
20
+
21
+ === Building and testing
20
22
21
23
You can **build and run the whole test suite** with `cargo test`. The test
22
24
suite runs cleanly and should remain clean.
23
25
24
- You can **format the code** using `cargo +nightly fmt`. Make sure to run this
25
- before pushing changes. The CI checks that the code is correctly formatted.
26
+ === Code formatting
27
+
28
+ Dropshot works with stable Rust versions, but for consistency the code is
29
+ _formatted_ with a specific version of `rustfmt`. To contribute to Dropshot,
30
+ you will need to have installed the `nightly-2020-07-26` version of the Rust
31
+ toolchain:
32
+
33
+ ----
34
+ $ rustup install nightly-2020-07-26
35
+ ----
36
+
37
+ You can then **format the code** using `cargo +nightly-2020-07-26 fmt` or
38
+ `rustfmt +nightly-2020-07-26`. Make sure to run this before pushing changes.
39
+ The CI uses this version of `rustfmt` to check that the code is correctly
40
+ formatted.
26
41
27
42
28
43
== Configuration reference
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ use_field_init_shorthand = false
83
83
force_explicit_abi = true
84
84
condense_wildcard_suffixes = false
85
85
color = " Auto"
86
- required_version = " 1.4.15 "
86
+ required_version = " 1.4.19 "
87
87
disable_all_formatting = false
88
88
skip_children = false
89
89
hide_parse_errors = false
You can’t perform that action at this time.
0 commit comments