.PHONY: help
help:
@echo 'atomic-lti - LTI Core Library'
@echo ''
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: test
test:
cargo test
.PHONY: test-unit
test-unit:
cargo test --lib
.PHONY: test-integration
test-integration:
cargo test --test '*'
.PHONY: test-doc
test-doc:
cargo test --doc
.PHONY: test-verbose
test-verbose:
cargo test -- --nocapture
.PHONY: test-specific
test-specific: ## Run specific test(s) by name (usage: make test-specific TEST=test_name)
cargo test $(TEST) -- --nocapture
.PHONY: coverage
coverage:
cargo tarpaulin --out Stdout
.PHONY: coverage-html
coverage-html:
cargo tarpaulin --out Html
@echo "Coverage report generated at target/tarpaulin/tarpaulin-report.html"
.PHONY: lint
lint:
cargo clippy -- -D warnings
.PHONY: lint-all
lint-all:
cargo clippy --all-features -- -D warnings
.PHONY: fmt
fmt:
cargo fmt
.PHONY: fmt-check
fmt-check:
cargo fmt -- --check
.PHONY: build
build:
cargo build
.PHONY: build-release
release:
cargo build --release
.PHONY: clean
clean:
cargo clean
rm -rf target/tarpaulin
.PHONY: docs
docs:
cargo doc --no-deps
.PHONY: docs-open
docs-open:
cargo doc --no-deps --open
.PHONY: docs-all
docs-all:
cargo doc
.PHONY: deps-check
deps-check:
cargo outdated
.PHONY: deps-update
deps-update:
cargo update
.PHONY: deps-tree
deps-tree:
cargo tree
.PHONY: check
check:
cargo check
.PHONY: check-all
check-all:
cargo check --all-features
.PHONY: bench
bench:
cargo bench
.PHONY: pre-commit
pre-commit: fmt lint test
.PHONY: ci
ci: fmt-check lint test
.DEFAULT_GOAL := help