-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
96 lines (74 loc) · 2.17 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[config]
default_to_workspace = false
[tasks.ignore-members]
workspace = false
[tasks.build]
command = "cargo"
args = ["build"]
[tasks.install-bare-metal]
command = "rustup"
args = ["target", "add", "thumbv7em-none-eabi"]
[tasks.build-bare-metal]
dependencies = ["install-bare-metal"]
command = "cargo"
args = ["build", "--no-default-features", "--target", "thumbv7em-none-eabi"]
[tasks.test]
dependencies = ["test-default-features", "test-all-features", "test-no-default-features"]
[tasks.test-default-features]
command = "cargo"
args = ["test"]
[tasks.test-all-features]
command = "cargo"
args = ["test", "--all-features"]
[tasks.test-no-default-features]
command = "cargo"
args = ["test", "--no-default-features"]
[tasks.run-bins]
dependencies = ["run-generate-sample-proof"]
[tasks.run-generate-sample-proof]
command = "cargo"
args = ["run", "--bin", "generate-sample-proof", "--features", "rand test clap", "--", "--max-nu=1"]
[tasks.format_inst]
[tasks.format-inst]
install_crate = { crate_name = "rustfmt", rustup_component_name = "rustfmt", binary = "rustfmt", test_arg = "--help" }
[tasks.format]
dependencies = ["format-inst"]
command = "cargo"
args = ["fmt"]
[tasks.format-check]
dependencies = ["format-inst"]
command = "cargo"
args = ["fmt", "--check"]
[tasks.clippy-inst]
install_crate = { crate_name = "clippy", rustup_component_name = "clippy", binary = "clippy", test_arg = "--help" }
[tasks.clippy]
dependencies = ["clippy-inst"]
command = "cargo"
args = ["clippy", "--", "--deny", "warnings"]
[tasks.header-add]
script = { file = "./scripts/add_header_if_missing.sh" }
args = ["HEADER-APACHE2", "./**/*.rs"]
[tasks.header-check]
env = { CHECK_DIRTY = "true", DRY_RUN = "true" }
run_task = "header-add"
[tasks.cov]
command = "cargo"
args = ["llvm-cov", "--workspace", "--lcov", "--output-path", "lcov.info"]
[tasks.udeps]
command = "cargo"
toolchain = "nightly"
args = ["udeps", "--all-targets"]
[tasks.ci-common]
dependencies = [
"build",
"build-bare-metal",
"test",
"run-bins",
"clippy",
"audit",
"udeps",
]
[tasks.ci]
dependencies = ["format", "header-add", "ci-common"]
[tasks.ci-remote]
dependencies = ["format-check", "header-check", "ci-common"]