-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yaml
130 lines (110 loc) · 2.95 KB
/
taskfile.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: "3"
includes:
dev:tools:install:
taskfile: deps.taskfile.yaml
dir: ./
tasks:
default:
cmds:
- task: run
run:
desc: "run cargo-feature-combinations"
ignore_error: true
interactive: true
cmds:
- cargo run --bin cargo-fc -- {{.CLI_ARGS}}
build:
desc: "build cargo-feature-combinations"
cmds:
- cargo build --all-targets {{.CLI_ARGS}}
build:release:
desc: "build cargo-feature-combinations in release mode"
cmds:
- cargo build --all-targets --release {{.CLI_ARGS}}
build:goreleaser:
desc: "build cargo-feature-combinations in release mode using goreleaser"
cmds:
- goreleaser build --snapshot --clean
release:
desc: "release cargo-feature-combinations using goreleaser"
cmds:
- goreleaser release --clean
typos:
desc: "check repository for typos"
aliases: [spellcheck]
cmds:
- typos
check:
desc: "check cargo workspace"
dir: "{{.ROOT_DIR}}"
cmds:
- cargo check --workspace --all-targets {{.CLI_ARGS}}
check:fc:
desc: "check cargo workspace"
dir: "{{.ROOT_DIR}}"
cmds:
- cargo fc check --workspace --all-targets {{.CLI_ARGS}}
clean:
desc: "clean cargo workspace"
cmds:
- cargo clean {{.CLI_ARGS}}
docs:
desc: "open documentation preview"
env:
RUSTDOCFLAGS: "--cfg docsrs"
cmds:
- cargo +nightly watchdoc --all-features {{.CLI_ARGS}}
outdated:
desc: "check for outdated cargo workspace dependencies"
cmds:
- cargo outdated --workspace --ignore-external-rel --exit-code 1 -v {{.CLI_ARGS}}
unused:
desc: "check for unused cargo workspace dependencies"
aliases: [unused-dependencies]
cmds:
- cargo +nightly udeps {{.CLI_ARGS}}
audit:
desc: "audit cargo workspace dependencies"
cmds:
- cargo audit {{.CLI_ARGS}}
format:
desc: "format cargo workspace"
cmds:
- cargo fmt {{.CLI_ARGS}}
test:
desc: "test cargo workspace"
cmds:
- cargo test --workspace --all-targets {{.CLI_ARGS}}
test:fc:
desc: "test cargo workspace for all combinations of features"
cmds:
- cargo fc test --workspace --all-targets {{.CLI_ARGS}}
lint:
desc: "lint cargo workspace"
cmds:
# prettier-ignore
- >-
cargo clippy
--tests --benches --examples --all-features
{{.CLI_ARGS}}
-- -Dclippy::all -Dclippy::pedantic
lint:fc:
desc: "lint cargo workspace for feature combinations"
cmds:
# prettier-ignore
- >-
cargo fc clippy
--tests --benches --examples --all-features
{{.CLI_ARGS}}
-- -Dclippy::all -Dclippy::pedantic
lint:fix:
desc: "lint and fix cargo workspace"
alias: [fix]
cmds:
# prettier-ignore
- >-
cargo clippy
--fix --allow-dirty --allow-staged
--tests --benches --examples --all-features
{{.CLI_ARGS}}
-- -Dclippy::all -Dclippy::pedantic