-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.toml
65 lines (56 loc) · 2.11 KB
/
Makefile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tasks.format]
description = "Format all source files."
env = { CARGO_MAKE_RUST_DEFAULT_TOOLCHAIN = "stable" } # See: https://github.com/sagiegurari/cargo-make/discussions/767
install_crate = { rustup_component_name = "rustfmt" }
command = "cargo"
args = ["fmt"]
[tasks.format-ci]
description = "Check all source files for formatting issues."
env = { CARGO_MAKE_RUST_DEFAULT_TOOLCHAIN = "stable" } # See: https://github.com/sagiegurari/cargo-make/discussions/767
install_crate = { rustup_component_name = "rustfmt" }
command = "cargo"
args = ["fmt", "--check"]
[tasks.lint]
description = "Lint all source files."
env = { CARGO_MAKE_RUST_DEFAULT_TOOLCHAIN = "stable" } # See: https://github.com/sagiegurari/cargo-make/discussions/767
install_crate = { rustup_component_name = "clippy" }
command = "cargo"
args = ["clippy"]
[tasks.lint-watch]
description = "Monitor and lint all source files continuously anytime one of them changes."
dependencies = ["lint"]
watch = true
[tasks.clean]
description = "Clean up temporary files generated by the Rust compiler."
command = "cargo"
args = ["clean"]
[tasks.build]
description = "Compile the source code."
command = "cargo"
args = ["build"]
dependencies = ["lint"]
[tasks.run]
description = "Run the application."
env = { RUST_BACKTRACE = 1 }
command = "cargo"
args = ["run"]
dependencies = ["build"]
[tasks.test]
description = "Run all unit tests."
command = "cargo"
args = ["test", "--tests"]
dependencies = ["build"]
[tasks.test-coverage]
description = "Run code coverage analysis and write a tabulated report to STDOUT."
env = { CARGO_MAKE_RUST_DEFAULT_TOOLCHAIN = "stable" } # See: https://github.com/sagiegurari/cargo-make/discussions/767
install_crate = "cargo-llvm-cov"
command = "cargo"
args = ["llvm-cov"]
dependencies = ["build"]
[tasks.test-coverage-ci]
description = "Run code coverage analysis and write a report to a text file in LCOV format."
env = { CARGO_MAKE_RUST_DEFAULT_TOOLCHAIN = "stable" } # See: https://github.com/sagiegurari/cargo-make/discussions/767
install_crate = "cargo-llvm-cov"
command = "cargo"
args = ["llvm-cov", "--lcov", "--output-path", "lcov.info"]
dependencies = ["build"]