2022-02-11 15:49:14 -05:00
|
|
|
# Lists the available actions
|
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
# Generate test coverage report. Only works on amd64 linux, and requires pycobertura to be installed, as well as cargo-tarpaulin
|
|
|
|
coverage:
|
|
|
|
cargo tarpaulin --out Xml
|
|
|
|
pycobertura show --format html --output coverage.html cobertura.xml
|
|
|
|
|
|
|
|
# Remove generated files
|
|
|
|
clean:
|
|
|
|
cargo clean
|
2022-02-15 10:20:16 -05:00
|
|
|
rm -f cobertura.xml
|
|
|
|
rm -f coverage.html
|
2022-02-11 15:49:14 -05:00
|
|
|
|
2022-02-16 11:14:45 -05:00
|
|
|
# Check code syntax
|
|
|
|
check:
|
|
|
|
cargo check
|
|
|
|
|
|
|
|
# Generate API docs
|
|
|
|
docs:
|
|
|
|
cargo doc
|
|
|
|
|
2022-02-11 15:49:14 -05:00
|
|
|
# Check code style
|
|
|
|
lint:
|
|
|
|
cargo clippy
|
|
|
|
|
|
|
|
# Format the code
|
|
|
|
fmt:
|
|
|
|
cargo +nightly fmt
|
|
|
|
|
2022-02-16 11:14:45 -05:00
|
|
|
# Automatically fix some code syntax/style issues
|
|
|
|
fix:
|
|
|
|
cargo fix --allow-dirty --allow-staged
|
|
|
|
just fmt
|
|
|
|
|
2022-02-11 15:49:14 -05:00
|
|
|
# Run the normal tests
|
|
|
|
test:
|
|
|
|
cargo test
|
|
|
|
|
|
|
|
# Run tests without the standard library
|
|
|
|
test-no-std:
|
|
|
|
cargo test --no-default-features --features alloc
|