-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.06 KB
/
Makefile
File metadata and controls
38 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SHELL := /bin/bash
.PHONY: help fmt lint audit test build wasm check ci
help:
@echo "Common tasks:"
@echo " make fmt - Check Rust formatting"
@echo " make lint - Run clippy with warnings denied"
@echo " make audit - Run cargo-deny license/security audit"
@echo " make test - Run workspace tests"
@echo " make build - Build release binaries for workspace crates"
@echo " make wasm - Build oxidize-core with wasm-bindgen output"
@echo " make check - Run fmt + lint + test"
@echo " make ci - Run check + build"
fmt:
cargo fmt --all --check
lint:
cargo clippy --workspace --all-targets -- -D warnings
audit:
cargo deny check
test:
cargo test --workspace --all-targets
build:
cargo build --workspace --release
wasm:
cargo build -p oxidize-core --target wasm32-unknown-unknown --release --features wasm
command -v wasm-bindgen >/dev/null || cargo install --locked wasm-bindgen-cli --version 0.2.120
wasm-bindgen --target web --out-dir dist/wasm target/wasm32-unknown-unknown/release/oxidize_core.wasm
check: fmt lint audit test
ci: check build