2023-09-01 07:31:13 +02:00
|
|
|
projects := 'application cosmic cosmic_sctk design open_dialog'
|
2023-08-15 10:58:46 +02:00
|
|
|
|
2023-08-02 11:54:07 +02:00
|
|
|
# Check for errors and linter warnings
|
|
|
|
|
check *args:
|
|
|
|
|
cargo clippy --no-deps {{args}} -- -W clippy::pedantic
|
|
|
|
|
cargo clippy --no-deps --no-default-features --features="winit,tokio" {{args}} -- -W clippy::pedantic
|
2023-08-15 10:58:46 +02:00
|
|
|
for project in {{projects}}; do \
|
|
|
|
|
cargo check -p ${project}; \
|
|
|
|
|
done
|
2023-08-02 11:54:07 +02:00
|
|
|
|
|
|
|
|
# Runs a check with JSON message format for IDE integration
|
|
|
|
|
check-json: (check '--message-format=json')
|
|
|
|
|
|
|
|
|
|
# Runs an example of the given {{name}}
|
|
|
|
|
example name:
|
|
|
|
|
cargo run --release -p {{name}}
|