[tasks.format] toolchain = "nightly" install_crate = { crate_name = "rustfmt-nightly", rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" } command = "cargo" args = ["fmt", "--", "--emit=files","--verbose"] # This task requires the `cargo-udeps` package: https://crates.io/crates/cargo-udeps [tasks.udeps] toolchain = "nightly" command = "cargo" args = ["udeps"] [tasks.deny] command = "cargo" args = ["deny", "check"] [tasks.clippy] command = "cargo" args = ["clippy","--","-D","warnings"] # This task requires the `cargo-tarpaulin` package: https://crates.io/crates/cargo-tarpaulin [tasks.cov] command = "cargo" args = [ "tarpaulin", "--ignore-tests", "-o", "Lcov", "--output-dir", "target/tarpaulin", ] [tasks.docs] command = "cargo" args = [ "doc", "--target-dir", "docs", "--color", "never", "--no-deps", "--open", "--workspace", "--exclude", "'cosmwasm*'", "--exclude", "'cw*'", "--release", ] # This task requires the `cargo-machete` package: https://crates.io/crates/cargo-machete [tasks.machete] command = "cargo" args = ["machete"] # Run automatically on "cargo make". This is the default task. We keep all the # default tasks and add our own "custom" task. [tasks.dev-test-flow] run_task = "custom-default" # Custom tasks to run on "cargo make" [tasks.custom-default] dependencies = ["deny", "clippy", "docs", "machete"] # Docs and Test coverage are not run by default. Can run all with "cargo make all". [tasks.all] dependencies = ["dev-test-flow", "custom-default", "cov"]