-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
59 lines (47 loc) · 1.23 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
58
59
version: '3'
silent: true
tasks:
build:
desc: Builds the library in debug mode
cmds:
- cmd: cargo build
bm:
desc: Builds release version for multiple targets
cmds:
- cmd: cargo +stable build --release --target=x86_64-unknown-linux-gnu
- cmd: cargo +nightly build --release --target=x86_64-unknown-linux-musl
- cmd: cargo +nightly build --release --target=wasm32-unknown-unknown
- cmd: cargo +nightly build --release --target=wasm32-wasi
clean:
desc: Cleans all targets
cmds:
- cmd: cargo clean
cov:
desc: Runs code coverage using grcov
cmds:
- cmd: ./coverage.sh
doc:
desc: Generates the documentation
cmds:
- cmd: cargo doc --no-deps
doc-open:
desc: Generates the documentation and opens it in the browser
cmds:
- cmd: cargo doc --no-deps --open
release:
desc: Builds the library in release mode
cmds:
- cmd: cargo clean
- cmd: cargo +stable build --release
test:
desc: Tests the library in debug mode
cmds:
- cmd: cargo test
clippy:
desc: Runs clippy for all targets
cmds:
- cmd: cargo clippy --all-targets
fmt:
desc: Runs the code formatter
cmds:
- cmd: cargo fmt