1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash # Add clippy for lint validation if [ "$CLIPPY" == "true" ]; then rustup component add clippy fi # Add rustfmt for format validation if [ "$RUSTFMT" == "true" ]; then rustup component add rustfmt fi