-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
57 lines (45 loc) · 1.18 KB
/
Taskfile.yml
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
version: '3'
silent: true
tasks:
build:
desc: Builds in debug mode
cmds:
- cmd: cargo +stable build
clean:
desc: Cleans all targets
cmds:
- cmd: cargo clean
clippy:
desc: Runs clippy for all targets
cmds:
- cmd: cargo +stable clippy --all-targets
- cmd: cargo +nightly clippy --all-targets
cov:
desc: Generates code coverage report
cmds:
- cmd: cargo +nightly llvm-cov --no-cfg-coverage --no-cfg-coverage-nightly --branch --html
- cmd: echo -e "\n\e[1;32mOpen coverage report\x3A\e[0m file:///$(pwd)/target/llvm-cov/html/index.html\n"
doc:
desc: Generates documentation
cmds:
- cmd: cargo +stable doc --document-private-items
doc-open:
desc: Generates documentation and opens in browser
cmds:
- cmd: cargo +stable doc --open --document-private-items
fmt:
desc: Runs code formatter
cmds:
- cmd: cargo +nightly fmt
test:
desc: Runs tests in debug mode
cmds:
- cmd: cargo +stable test
testn:
desc: Runs tests in debug mode
cmds:
- cmd: cargo +stable nextest run
run:
desc: Runs the application
cmds:
- cmd: cargo +stable run