Dockerfile to build Rust + Cargo with useful formatting, linting and coverage tools in stable, beta and nightly
rs-cider
Dockerfile to build Rust + Cargo with useful formatting, linting and coverage
tools in stable, beta and nightly.
Docker Hub link: https://hub.docker.com/r/guangie88/rs-cider
The purpose of the Docker image is to create a “Swiss Army knife” for automated
CI/CD purposes for Rust environment.
rustfmt-preview
(cargo fmt
) on all stable, beta, nightlyrustup component add rustfmt-preview
cargo fmt
cargo +beta fmt
cargo +nightly fmt
cargo clippy
only on nightlyrustup component add clippy
cargo clippy
cargo tarpaulin
via stable https://github.com/xd009642/tarpaulincargo install cargo-tarpaulin
cargo tarpaulin
diesel
via stable https://github.com/diesel-rs/dieselcargo install diesel
diesel
The short form rs-cider
is actually a
portmanteau for Rust
CI/CD-er, where CI/CD stands for continuous integration and
continuous delivery, and the “-er” is similar to do-er, play-er, mak-er, etc.