version: '3'
silent: true
tasks:
build:
desc: Builds the library in debug mode
cmds:
- cmd: cargo build
clean:
desc: Cleans all targets
cmds:
- cmd: cargo clean
clippy:
desc: Runs clippy
cmds:
- cmd: cargo +stable clippy
clippy-all:
desc: Runs clippy for all targets
cmds:
- cmd: cargo +nightly clippy --all-targets
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
doc-priv:
desc: Generates the documentation
cmds:
- cmd: cargo doc --no-deps --document-private-items
doc-priv-open:
desc: Generates the documentation and opens it in the browser
cmds:
- cmd: cargo doc --no-deps --document-private-items --open
fmt:
desc: Runs the code formatter
cmds:
- cmd: cargo +nightly fmt
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 +nightly test