.PHONY: all build build-release install install-release clean test check fmt lint run demo release
LEVEL ?= minor
all: check build test
build:
cargo build
build-release:
cargo build --release
install:
CARGO_INCREMENTAL=0 cargo install --path . --locked --bins --debug --force
install-release:
CARGO_INCREMENTAL=0 cargo install --path . --locked --bins --force
clean:
cargo clean
test:
cargo nextest run
cargo test --doc
check:
cargo check
cargo clippy -- -D warnings
fmt:
cargo fmt
lint:
cargo fmt -- --check
cargo clippy -- -D warnings
run:
cargo run -- $(ARGS)
demo: install
@echo "=== robin demo ==="
robin --help
release:
cargo release $(LEVEL) --execute --no-confirm