@@ -50,21 +50,13 @@ APIs, you can refer to the documentation of the [`Assert`] type.
50
50
51
51
## Clippy lints
52
52
53
- We do not enforce lint status in the checks done by GitHub Actions, because
54
- clippy is a moving target that can make it hard to merge for little benefit.
53
+ At the time of writing, rustup's CI pipeline runs clippy on both Windows and
54
+ Linux, but contributors to particularly OS-specific code should also make
55
+ sure that their clippy checking is done on that particular platform, as
56
+ OS-conditional code is a common source of unused imports and other small lints,
57
+ which can build up over time.
55
58
56
- We do ask that contributors keep the clippy status clean themselves.
57
-
58
- Minimally, run ` cargo clippy --all --all-targets --features test -- -D warnings ` before
59
- submitting code.
60
-
61
- If possible, adding ` --all-features ` to the command is useful, but will require
62
- additional dependencies like ` libcurl-dev ` .
63
-
64
- Regular contributors or contributors to particularly OS-specific code should
65
- also make sure that their clippy checking is done on at least Linux and Windows,
66
- as OS-conditional code is a common source of unused imports and other small
67
- lints, which can build up over time.
59
+ ## Writing platform-specific code
68
60
69
61
For developers using BSD/Linux/Mac OS, there are Windows VM's suitable for such
70
62
development tasks for use with virtualbox and other hypervisors are downloadable
73
65
Similarly, there are many Linux and Unix operating systems images available for
74
66
developers whose usual operating system is Windows. Currently Rustup has no Mac
75
67
OS specific code, so there should be no need to worry about Mac VM images.
76
-
77
- Clippy is also run in GitHub Actions, in the ` General Checks / Checks ` build
78
- task, but not currently run per-platform, which means there is no way to find
79
- out the status of clippy per platform without running it on that platform as a
80
- developer.
0 commit comments