Check-only Clippy & Fmt for CI/CD
The official rust images confusingly have these components linked in $CARGO_HOME/bin, but nothing behind in $RUSTUP_HOME. I laud the desire to keep the images minimal. And also the checking functionalities would seem a must-have for CI/CD.
I don’t know if these tools’ file-modifying features can be turned off. For this scenario that would make sence. And it would make the binaries smaller.
You might think about having a cargo-slim / std variant in the corresponding OS-slim / std images. For symmetry’s sake the same might then need to be done for Alpine.
We have supply-chain safe channels for hub.docker.com and crates.io, but not for rustup. For the latter it is not even clear what would need to be configured on Artifactory. The idea of setting up an https_proxy or even socks, received no love from our admins.
As a workaround we’d be happy enough, if it were just possible to
cargo install clippy rustfmt. Somehow that doesn’t seem possible at all. (Or extremely outdated…)
Discussion in the ATmosphere