mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
38 lines
423 B
Makefile
38 lines
423 B
Makefile
all: debug fmt test
|
|
|
|
#
|
|
# Build
|
|
#
|
|
|
|
.PHONY: debug
|
|
debug:
|
|
RUSTFLAGS="--deny warnings" cargo build
|
|
|
|
.PHONY: release
|
|
release:
|
|
cargo build --release
|
|
|
|
.PHONY: build
|
|
build: debug
|
|
|
|
#
|
|
# Tests and linters
|
|
#
|
|
|
|
.PHONY: test
|
|
test:
|
|
cargo test -- --color always --nocapture
|
|
|
|
.PHONY: check
|
|
check: fmt clippy
|
|
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
cargo fmt --all -- --check
|
|
|
|
.PHONY: clippy
|
|
clippy:
|
|
cargo clippy --all-targets --all-features -- -D warnings
|
|
|