SHELL = /bin/bash
DIR=$(shell pwd)
init:
echo "init"
echo "Git branch: $GITBRANCH"
build:
ls -alh
cd $(DIR); cargo build --release
test:
cd $(DIR); cargo test --workspace -- --test-threads=4
fmt:
cd $(DIR); cargo fmt -- --check
check-cargo-toml:
cd $(DIR); cargo sort --workspace --check
check-license:
cd $(DIR); sh scripts/check-license.sh
clippy:
cd $(DIR); cargo clippy --all-targets --all-features --workspace -- -D warnings
basic-example:
cd $(DIR); cargo run --example basic
bad-example:
cd $(DIR); cargo run --example bad