forked from AluVM/rust-aluvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
38 lines (30 loc) · 1.18 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
[env]
ALUVM_TOOLCHAIN_ = { source = "${ALUVM_TOOLCHAIN}", default_value = "stable", mapping = { "nightly" = "nightly" } }
ALUVM_FEATURES_ = { source = "${ALUVM_FEATURES}", default_value = "all", mapping = { "default" = "default", "std" = "std", "secp256k1" = "secp256k1", "curve25519" = "curve25519" } }
[tasks.fmt]
command = "cargo"
toolchain = "nightly"
args = ["fmt", "--all"]
[tasks.fmt-check]
command = "cargo"
toolchain = "nightly"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
command = "cargo"
toolchain = "stable"
args = ["clippy", "--workspace", "--all-features", "--", "-D", "warnings"]
[tasks.doc]
command = "cargo"
toolchain = "nightly"
args = ["doc", "--workspace", "--all-features"]
[tasks.test]
command = "rustup"
args = ["run", "${ALUVM_TOOLCHAIN_}", "cargo", "test", "--workspace", "--features", "${ALUVM_FEATURES_}", "--no-fail-fast"]
[tasks.test-all]
run_task = { name = ["fmt", "clippy", "test" ] }
[tasks.check]
command = "rustup"
args = ["run", "${ALUVM_TOOLCHAIN_}", "cargo", "check", "--features", "${ALUVM_FEATURES_}"]
[tasks.check-all]
command = "rustup"
args = ["run", "${ALUVM_TOOLCHAIN_}", "cargo", "check", "--workspace", "--all-targets", "--all-features"]