-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d577451
commit 8f65c48
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# https://github.com/sagiegurari/cargo-make | ||
# To install run `cargo install cargo-make` | ||
|
||
# Default task when `makers` or `cargo make` is invoked with no arguments | ||
[tasks.default] | ||
clear = true | ||
dependencies = ["format", "lint", "test"] | ||
|
||
[tasks.fmt] | ||
alias = "format" | ||
|
||
[tasks.format] | ||
description = "Formats all bin and lib files of the current crate using rustfmt." | ||
command = "cargo" | ||
args = ["fmt", "--all"] | ||
|
||
[tasks.lint] | ||
description = "Run rustfmt and clippy lints." | ||
script = ''' | ||
cargo fmt --check --all | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
''' | ||
|
||
[tasks.test] | ||
clear = true | ||
description = "Run all tests." | ||
script = ''' | ||
cargo build --all-targets --verbose --workspace | ||
cargo test --all-targets --verbose --workspace | ||
cargo build --all-targets --all-features --verbose --workspace | ||
cargo test --all-targets --all-features --verbose --workspace | ||
''' |