-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (33 loc) · 941 Bytes
/
justfile
File metadata and controls
43 lines (33 loc) · 941 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
37
38
39
40
41
42
43
# Samo — build tooling
# Run `just --list` to see available targets.
# Debug build
build:
cargo build
# Release build (optimized)
build-release:
cargo build --release
# Run unit tests
test:
cargo test
# Run integration tests (requires Docker Postgres)
test-integration:
docker compose -f tests/docker-compose.test.yml up -d --wait && (cargo test --features integration; ret=$?; docker compose -f tests/docker-compose.test.yml down; exit $ret)
# Format code
fmt:
cargo fmt --all
# Run clippy linter
clippy:
cargo clippy --all-targets --all-features -- -D warnings
# Lint: format check + clippy
lint:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
# Clean build artifacts
clean:
cargo clean
# Build and run (debug)
run *ARGS:
cargo run -- {{ARGS}}
# Cross-compile for a Linux TARGET triple (requires cross + Docker)
cross TARGET:
cross build --release --target {{TARGET}}