feat: add rust linting

This commit is contained in:
Pierre Mavro
2021-05-14 19:17:49 +02:00
parent 748c5d824f
commit fee25718a2

View File

@@ -26,6 +26,9 @@ jobs:
echo "########## SHARED CACHE STATUS ##########"
sccache --version
sccache --show-stats
echo "########## LINTER ##########"
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
RUSTFLAGS="--deny warnings" cargo check || (echo "Solve your warnings to continue"; exit 1)
echo "########## START BUILD ##########"
cargo build --all-features
sccache --show-stats