-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 896 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 896 Bytes
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
build:
cargo build --verbose --release --locked
# Run the rust tests
test:
cargo nextest run --all-features --workspace --locked --cargo-profile release --no-tests=warn
# Validate formatting
format:
cargo +nightly fmt --check
# Errors if there is a warning with clippy
lint:
cargo +nightly clippy --all-targets --workspace --profile dev -- -D warnings
# Fix linting errors
lint-fix:
cargo +nightly clippy --all-targets --workspace --profile dev --fix
# Can be used as a manual pre-commit check
pre-commit:
cargo fmt && make lint
docker-build:
docker build -t assertion-da:local .
docker-build-dev:
docker build --build-arg BUILD_FLAGS="--features debug_assertions" -t assertion-da:dev-local .
# Run the docker image
compose:
docker compose -f etc/docker-compose.yaml up
# Run the docker image for development
compose-dev:
docker compose -f etc/docker-compose-dev.yaml up