-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
60 lines (50 loc) · 1.27 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
[config]
default_to_workspace = false
additional_profiles = ["debug"]
[tasks.set_vars.env]
RUSTFLAGS = "-Copt-level=s"
MODE = "release"
ADDITIONAL = "--release"
[tasks.set_vars.env.debug]
RUSTFLAGS = ""
MODE = "debug"
ADDITIONAL = "--color=auto" # it's a stub
[tasks.build_example_simple]
command = "cargo"
toolchain = "stable"
args = ["build", "--example", "simple", "--target", "wasm32-unknown-unknown", "${ADDITIONAL}"]
dependencies = ["set_vars"]
[tasks.deploy_example_simple]
command = "wasm-bindgen"
args = [
"--target",
"web",
"--no-typescript",
"--out-dir",
"examples/static/target",
"--out-name",
"simple",
"target/wasm32-unknown-unknown/${MODE}/examples/simple.wasm",
]
dependencies = ["set_vars"]
[tasks.example_simple]
dependencies = ["build_example_simple", "deploy_example_simple"]
[tasks.examples]
dependencies = ["example_simple"]
[tasks.run]
command = "cargo"
toolchain = "stable"
args = ["run", "--example", "server", "${ADDITIONAL}"]
dependencies = ["examples"]
[tasks.checkfmt]
command = "cargo"
toolchain = "nightly"
args = ["fmt", "--", "--check"]
[tasks.fmt]
command = "cargo"
toolchain = "nightly"
args = ["fmt"]
[tasks.clippy]
command = "cargo"
toolchain = "stable"
args = ["clippy", "--all-targets", "--all-features"]