summaryrefslogtreecommitdiff
path: root/ci/run-rust-checks.sh
blob: b5ad9e8dc6f71fbd8a329f23b80bab8935fd6ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

. ${0%/*}/lib.sh

set +x

if ! group "Check Rust formatting" cargo fmt --all --check
then
	RET=1
fi

if ! group "Check for common Rust mistakes" cargo clippy --all-targets --all-features -- -Dwarnings
then
	RET=1
fi

if ! group "Check for minimum required Rust version" cargo msrv verify
then
	RET=1
fi

exit $RET