File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -728,6 +728,10 @@ affecting any existing installation. Remember to keep those two environment vari
728
728
set when running your compiled ` rustup-init ` or the toolchains it installs, but _ unset_
729
729
when rebuilding ` rustup ` itself.
730
730
731
+ We use ` rustfmt ` to keep our codebase consistently formatted. Please ensure that
732
+ you have correctly formatted your code (most editors will do this automatically
733
+ when saving) or it may not pass the CI tests.
734
+
731
735
Unless you explicitly state otherwise, any contribution intentionally
732
736
submitted for inclusion in the work by you, as defined in the
733
737
Apache-2.0 license, shall be dual licensed as above, without any
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ install:
70
70
- where gcc rustc cargo
71
71
- rustc -vV
72
72
- cargo -vV
73
+ - rustfmt -vV
73
74
74
75
build : false
75
76
@@ -79,6 +80,7 @@ test_script:
79
80
- cargo test --release --target %TARGET% %FEATURES%
80
81
- if defined BUILD_MSI pushd src\rustup-win-installer && cargo build --release --target %TARGET% & popd
81
82
- if defined BUILD_MSI pushd src\rustup-win-installer\msi && powershell .\build.ps1 -Target %TARGET% & popd
83
+ - cargo fmt --all -- --check
82
84
83
85
notifications :
84
86
- provider : Webhook
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ echo "toolchain versions\n------------------"
6
6
7
7
rustc -vV
8
8
cargo -vV
9
+ rustfmt -vV
9
10
10
11
cargo build --locked -v --release --target $TARGET --features vendored-openssl
11
12
@@ -14,3 +15,7 @@ if [ -z "$SKIP_TESTS" ]; then
14
15
cargo test --release -p rustup-dist --target $TARGET --features vendored-openssl
15
16
cargo test --release --target $TARGET --features vendored-openssl
16
17
fi
18
+
19
+ # Check the formatting last because test failures are more interesting to have
20
+ # discovered for contributors lacking some platform access for testing beforehand
21
+ cargo fmt --all -- --check
You can’t perform that action at this time.
0 commit comments