-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmold.yaml
48 lines (38 loc) · 965 Bytes
/
mold.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
version: "0.5"
includes:
- url: "github.com/xtfc/std.mold"
ref: "0.5"
recipes:
build:
help: "Build using cargo"
command: ["cargo", "build"]
clean:
help: "Clean build artifacts"
command: ["cargo", "clean"]
clean-self:
help: "Only clean current package"
runtime: "sh"
script: |
cargo clean -p $(cargo pkgid)
check:
help: "Check for errors using cargo"
command: ["cargo", "check"]
deps:
- "clean-self"
lint:
help: "Lint using clippy"
command: ["cargo", "clippy", "--", "-D", "warnings"]
deps:
- "clean-self"
fmt:
help: "Format using rustfmt"
command: ["cargo", "fmt"]
fmtcheck:
help: "Check formatting using rustfmt"
command: ["cargo", "fmt", "--", "--check"]
install:
help: "Install the current project using cargo"
command: ["cargo", "install", "--force", "--path", "."]
test:
help: "Run tests using cargo"
command: ["cargo", "test"]