aboutsummaryrefslogtreecommitdiffstats
path: root/rust/Makefile
diff options
context:
space:
mode:
authorbnewbold <bnewbold@archive.org>2022-10-06 01:56:36 +0000
committerbnewbold <bnewbold@archive.org>2022-10-06 01:56:36 +0000
commite5ee112a13cc331a488d395c4da1f80a9dd61930 (patch)
tree396a6fd04188385217b6e3c0cae4f91069f1ec38 /rust/Makefile
parent8bdd5fd92a33cf05424447241033bd529b68af77 (diff)
parent9faf093b50da190a5efee47f3b00bd425a940c40 (diff)
downloadfatcat-e5ee112a13cc331a488d395c4da1f80a9dd61930.tar.gz
fatcat-e5ee112a13cc331a488d395c4da1f80a9dd61930.zip
Merge branch 'bnewbold-rust-macaroons-upstream' into 'master'
rust: refactor closer to 'macaroon' crate See merge request webgroup/fatcat!143
Diffstat (limited to 'rust/Makefile')
-rw-r--r--rust/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/rust/Makefile b/rust/Makefile
index e222cf07..a66ae47b 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -9,9 +9,25 @@ help: ## Print info about all commands
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: test
-test: ## Run all tests and lints
+test: ## Run all tests
cargo test -- --test-threads 1
+.PHONY: lint
+lint: ## Run syntax/style checks
+ cargo clippy -- --no-deps
+
+.PHONY: fmt
+fmt: ## Run syntax re-formatting
+ cargo fmt
+
+.PHONY: build
+build: ## Build
+ cargo build
+
+.PHONY: build-release
+build-release: ## Build for release
+ cargo build --release
+
.PHONY: serve
serve: ## Run web service locally, with reloading
#./target/debug/fatcatd