Lines Matching +full:rustfmt +full:- +full:clippy
2 set -euo pipefail
10 # Note: This script requires nightly Rust, rustfmt, clippy, and cargo-expand
22 if [[ "${1:-}" == "+"* ]]; then
27 if ! cargo "${toolchain}" -V &>/dev/null; then
28 rustup toolchain install "${toolchain#+}" --no-self-update --profile minimal
31 if [[ "${toolchain:-+nightly}" != "+nightly"* ]]; then
34 if ! rustup "${toolchain}" component add rustfmt &>/dev/null \
35 || ! cargo expand -V &>/dev/null; then
36 warn "ci.sh requires rustfmt and cargo-expand to run all tests"
39 # Run rustfmt.
40 if ! rustup "${toolchain}" component add rustfmt &>/dev/null; then
41 warn "component 'rustfmt' is unavailable for toolchain '${toolchain#+}'"
44 set -x
45 cargo "${toolchain}" fmt --all
49 # Run clippy.
50 if ! rustup "${toolchain}" component add clippy &>/dev/null; then
51 warn "component 'clippy' is unavailable for toolchain '${toolchain#+}'"
54 set -x
55 cargo "${toolchain}" clippy --all --all-features --all-targets -Z unstable-options
59 set -x
62 cargo "${toolchain}" doc --no-deps --all --all-features
65 cargo "${toolchain}" test --all --all-features