.PHONY: fmt lint doc check test-verbose watch-test dev-deps generate-keys help-dev version
fmt:
$(CARGO) fmt
lint:
$(CARGO) clippy -- -D warnings
doc:
$(CARGO) doc --no-deps
check: fmt lint test
@echo "All checks passed!"
test-verbose:
$(CARGO) test -- --nocapture $(TEST_FLAGS)
test-with-tdx:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER='sudo -E' $(CARGO) test --tests --features with-tdx $(TEST_FLAGS)
watch-test:
cargo watch -x test
dev-deps:
cargo install cargo-watch
cargo install cargo-edit
generate-keys:
openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:4096
openssl rsa -pubout -in private.pem -out public.pem
version:
@echo "atlas-cli version: $(VERSION)"
@$(CARGO) --version
@rustc --version
help-dev:
@echo "Development targets for atlas-cli:"
@echo "=================================================================================="
@echo " make fmt - Format code using cargo fmt"
@echo " make lint - Run clippy linter"
@echo " make doc - Generate documentation"
@echo " make check - Run format, lint, and tests"
@echo " make test-verbose - Run tests with output"
@echo " make watch-test - Watch for changes and run tests"
@echo " make dev-deps - Install development dependencies"
@echo " make generate-keys - Generate RSA keys for signing"
@echo " make version - Display version information"