]> git.lizzy.rs Git - rust.git/blob - Makefile.toml
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / Makefile.toml
1 [env]
2 CFG_RELEASE = { value = "${CARGO_MAKE_RUST_VERSION}", condition = { env_not_set = ["CFG_RELEASE"] } }
3 CFG_RELEASE_CHANNEL = { value = "${CARGO_MAKE_RUST_CHANNEL}", condition = { env_not_set = ["CFG_RELEASE_CHANNEL"] } }
4
5 [tasks.build-bin]
6 command = "cargo"
7 args = [
8   "build",
9   "--bin",
10   "rustfmt",
11   "--bin",
12   "cargo-fmt",
13 ]
14
15 [tasks.build-bins]
16 command = "cargo"
17 args = [
18   "build",
19   "--bins",
20 ]
21
22 [tasks.install]
23 command = "cargo"
24 args = [
25   "install",
26   "--path",
27   ".",
28   "--force",
29   "--locked", # Respect Cargo.lock
30 ]
31
32 [tasks.release]
33 command = "cargo"
34 args = [
35   "build",
36         "--release",
37 ]
38
39 [tasks.test]
40 command = "cargo"
41 args = [
42   "test",
43 ]
44
45 [tasks.test-all]
46 dependencies = ["build-bin"]
47 run_task = { name = ["test", "test-ignored"] }
48
49 [tasks.test-ignored]
50 command = "cargo"
51 args = [
52   "test",
53         "--",
54         "--ignored",
55 ]
56
57 [tasks.b]
58 alias = "build"
59
60 [tasks.bb]
61 alias = "build-bin"
62
63 [tasks.bins]
64 alias = "build-bins"
65
66 [tasks.c]
67 alias = "check"
68
69 [tasks.t]
70 alias = "test"
71