2021-07-14 08:25:29 +00:00
|
|
|
#!/bin/bash
|
2022-04-06 19:08:29 +00:00
|
|
|
# cargo clippy is a superset of cargo check, so we don't check manually
|
2022-09-30 20:14:25 +00:00
|
|
|
|
|
|
|
time cargo clippy \
|
|
|
|
--all-targets \
|
|
|
|
--locked \
|
2024-03-06 12:47:30 +00:00
|
|
|
--features="bin_cmd_doc_gen,bin_compression,bin_csv,bin_graphviz,bin_bot,bin_asset_migrate,asset_tweak,bin,stat,cli" \
|
2022-09-30 20:14:25 +00:00
|
|
|
-- -D warnings &&
|
|
|
|
|
2021-07-14 08:25:29 +00:00
|
|
|
# Ensure that the veloren-voxygen default-publish feature builds as it excludes some default features
|
2022-09-30 20:14:25 +00:00
|
|
|
time cargo clippy -p \
|
|
|
|
veloren-voxygen --locked \
|
|
|
|
--no-default-features \
|
|
|
|
--features="default-publish" \
|
|
|
|
-- -D warnings &&
|
2024-03-06 12:47:30 +00:00
|
|
|
|
|
|
|
# Ensure that test-server compiles
|
|
|
|
time cargo clippy --locked --bin veloren-server-cli --no-default-features -F simd -- -D warnings &&
|
2021-11-22 07:04:19 +00:00
|
|
|
time cargo fmt --all -- --check
|