-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 851 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
# 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
# Run the tests
test:
cargo test --all-targets
# Run clippy (linter) on all targets
lint:
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 lint lint-wasm test
# Clean build artifacts
clean:
cargo clean
audit:
cargo audit