-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0951315
commit 378c0a0
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.PHONY: usage deps build check test clean | ||
|
||
UNAME := $(shell uname) | ||
|
||
usage: | ||
@echo "Usage:" | ||
@echo " deps: Installs the necesarry dependencies." | ||
@echo " build: Builds the crate." | ||
@echo " check: Checks format and lints." | ||
@echo " test: Runs all tests." | ||
@echo " clean: Cleans the built artifacts." | ||
|
||
build: | ||
cargo build --release | ||
# cargo build --release --all-features | ||
|
||
check: | ||
cargo fmt --all -- --check | ||
cargo clippy --all-targets -- -D warnings | ||
# cargo clippy --all-targets --all-features -- -D warnings | ||
|
||
test: | ||
cargo test | ||
# cargo test --profile ci --all-features | ||
|
||
clean: | ||
cargo clean | ||
|
||
deps: | ||
ifeq ($(UNAME), Darwin) | ||
deps: deps-macos | ||
endif | ||
deps: | ||
|
||
deps-macos: | ||
-brew install llvm@18 --quiet |