mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 06:45:32 +00:00
krust builds container images for Rust applications without Docker: - Builds static binaries using musl libc - Creates minimal OCI container images - Pushes to any OCI-compliant registry - Outputs digest to stdout for composability Inspired by ko.build for Go applications. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
No EOL
532 B
Makefile
39 lines
No EOL
532 B
Makefile
.PHONY: test test-unit test-e2e build run clean fmt lint
|
|
|
|
# Build the project
|
|
build:
|
|
cargo build
|
|
|
|
# Run the project
|
|
run:
|
|
cargo run
|
|
|
|
# Run all tests
|
|
test: test-unit test-e2e
|
|
|
|
# Run unit tests only
|
|
test-unit:
|
|
cargo test --lib --bins
|
|
|
|
# Run e2e tests only
|
|
test-e2e:
|
|
cargo test --test '*'
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
cargo clean
|
|
|
|
# Format code
|
|
fmt:
|
|
cargo fmt
|
|
|
|
# Run linter
|
|
lint:
|
|
cargo clippy -- -D warnings
|
|
|
|
# Check formatting
|
|
check-fmt:
|
|
cargo fmt -- --check
|
|
|
|
# Run all checks (format, lint, test)
|
|
check: check-fmt lint test |