-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.toml
65 lines (49 loc) · 1.15 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
extend= [
{ path = "coverage_grcov.makefile.toml" }
]
[env]
RUST_BACKTRACE = 0
[tasks.format]
command = "cargo"
args = ["fmt"]
[tasks.format-check]
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.check]
command = "cargo"
args = ["check"]
[tasks.clippy]
command = "cargo"
args = ["clippy"]
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.build]
command = "cargo"
args = ["build"]
dependencies = ["clean"]
[tasks.docs]
command = "cargo"
args = ["doc", "--open", "--no-deps"]
[tasks.unit]
command = "cargo"
args = ["test", "--lib", "--", "--nocapture"]
[tasks.integration]
command = "cargo"
args = ["test"]
[tasks.test]
dependencies = ["unit", "integration"]
[tasks.dev]
dependencies = ["check-wasm", "test", "format", "clippy"]
[tasks.check-wasm]
command = "cargo"
args = ["check", "--target", "wasm32-unknown-unknown"]
[tasks.genhtml]
script = '''
grcov . --source-dir src --binary-path ./target/cover/debug -t html --branch --ignore-not-existing -o ./target/coverage/
'''
[tasks.clean-cover]
command = "cargo"
args = ["clean", "--target-dir", "target/cover"]
[tasks.cover]
dependencies = ["clean-cover", "coverage_grcov", "genhtml"]