File tree Expand file tree Collapse file tree 3 files changed +54
-36
lines changed Expand file tree Collapse file tree 3 files changed +54
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -38,13 +38,6 @@ cargo-fmt = [
38
38
" structopt" ,
39
39
]
40
40
41
- rustfmt-format-diff = [
42
- " env_logger" ,
43
- " serde" ,
44
- " serde_json" ,
45
- " structopt" ,
46
- ]
47
-
48
41
config = [
49
42
" dirs" ,
50
43
" rustfmt-config_proc_macro" ,
@@ -61,7 +54,20 @@ emitter = [
61
54
" term" ,
62
55
]
63
56
57
+ git-rustfmt = [
58
+ " env_logger" ,
59
+ " structopt" ,
60
+ ]
61
+
64
62
rustfmt = [
63
+ " env_logger" ,
64
+ " structopt" ,
65
+ ]
66
+
67
+ rustfmt-format-diff = [
68
+ " env_logger" ,
69
+ " serde" ,
70
+ " serde_json" ,
65
71
" structopt" ,
66
72
]
67
73
Original file line number Diff line number Diff line change 1
- extend = " .cargo/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
+ " --features=rustfmt,cargo-fmt" ,
14
+ ]
15
+
16
+ [tasks .build-bins ]
17
+ command = " cargo"
18
+ args = [
19
+ " build" ,
20
+ " --all-features" ,
21
+ " --bins" ,
22
+ ]
2
23
3
24
[tasks .install ]
4
25
command = " cargo"
@@ -7,7 +28,8 @@ args = [
7
28
" --path" ,
8
29
" ." ,
9
30
" --force" ,
10
- " --locked" ,
31
+ " --locked" , # Respect Cargo.lock
32
+ " --features=rustfmt,cargo-fmt" # Install only rustfmt and cargo-fmt
11
33
]
12
34
13
35
[tasks .test-all ]
@@ -17,6 +39,23 @@ run_task = { name = ["test", "test-ignored"] }
17
39
command = " cargo"
18
40
args = [
19
41
" test" ,
42
+ " --all-features" ,
20
43
" --" ,
21
44
" --ignored" ,
22
45
]
46
+
47
+ [tasks .b ]
48
+ alias = " build"
49
+
50
+ [tasks .bb ]
51
+ alias = " build-bin"
52
+
53
+ [tasks .bins ]
54
+ alias = " build-bins"
55
+
56
+ [tasks .c ]
57
+ alias = " check"
58
+
59
+ [tasks .t ]
60
+ alias = " test"
61
+
You can’t perform that action at this time.
0 commit comments