Have Makefile that does same commands as CI

This commit is contained in:
Jan Rüth 2023-11-25 15:27:50 +01:00 committed by Jan
commit 31ed3963a6
2 changed files with 23 additions and 4 deletions

18
Makefile Normal file
View file

@ -0,0 +1,18 @@
FEATURES ?= logging,tls12
.PHONY: fmt
fmt:
cargo fmt --all --check
.PHONY: lint
lint:
cargo clippy --workspace --all-targets -F "$(FEATURES)"
.PHONY: test
test:
cargo test --all-targets -F "$(FEATURES)"
.PHONY: build
build:
cargo build --all-targets -F "$(FEATURES)"