-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.toml
More file actions
74 lines (57 loc) · 1.17 KB
/
Makefile.toml
File metadata and controls
74 lines (57 loc) · 1.17 KB
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
[config]
default_to_workspace = false
skip_core_tasks = true
[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.clean-profraw]
script = '''
rm -f *.profraw
'''
[tasks.clean-coverage]
script = '''
rm -rf ./target/llvm-cov
'''
dependencies = ["clean-profraw"]
[tasks.coverage]
script = '''
cargo llvm-cov clean
cargo llvm-cov test
cargo llvm-cov report --html
'''
[tasks.cover]
dependencies = ["clean-coverage", "coverage", "clean-profraw"]