-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (32 loc) · 938 Bytes
/
Makefile
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
39
40
41
42
43
44
# Makefile for casper-binary-port-client
# Specify the cargo target for wasm32
WASM_TARGET = wasm32-unknown-unknown
# Default target (build the project)
all: build
# Build the project
build:
cargo build
build-for-release:
cargo build --release
# Run the tests
test:
cargo test --all-targets
# Run clippy (linter) on all targets
lint: lint-wasm
cargo clippy --all-targets -- -D warnings
# Run clippy on wasm32-unknown-unknown target
lint-wasm:
cd binary-port-access && cargo clippy --target $(WASM_TARGET) --all-targets -- -D warnings
# Format the codebase using rustfmt and check for correct formatting
fmt-check:
cargo fmt --all -- --check
# Check for outdated dependencies
outdated:
cargo outdated || cargo install cargo-outdated
# Run a full CI-style check (build, fmt, clippy, test)
ci-check: fmt-check lint lint-wasm test
# Clean build artifacts
clean:
cargo clean
audit:
cargo install cargo-audit || cargo audit