-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjustfile
39 lines (30 loc) · 1.16 KB
/
justfile
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
# Set environment variable
export CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE := "true"
# Run rustfmt to check the code formatting without making changes
fmt:
cargo +nightly fmt -- --check
# Run clippy to catch common mistakes and improve your Rust code
clippy:
cargo +nightly clippy --all-targets --all-features -- -Dwarnings
# Execute all unit tests in the workspace
test:
cargo llvm-cov nextest
# Generate documentation for the project
docs:
cargo doc --no-deps
# Runs cargo deny to check for any vulnerabilities in the project
deny:
cargo deny --all-features check all
# Clean up the project by removing the target directory
clean:
cargo clean
# Build hivetest binary for `x86_64-unknown-linux-musl`, used for mac -> linux cross compile
build-cross-hive:
CFLAGS=-march=x86_64_v4 cargo +stable zigbuild --bins --target x86_64-unknown-linux-musl --profile hivetests
# Build hivetest binary, run on linux
build-hive:
cargo build --bins --profile hivetests
cp target/hivetests/{adapter,ress,reth} ../hive/clients/reth/
# Run the entire CI pipeline including fmt, clippy, docs, and test checks
ci: fmt clippy test docs deny
@echo "CI flow completed"