An easy-to-host PDS on the ATProtocol, MacOS. Grandma-approved.
1check:
2 cargo check --workspace
3
4build:
5 cargo build --workspace
6
7test:
8 cargo test --workspace
9
10fmt:
11 cargo fmt --all
12
13fmt-check:
14 cargo fmt --all --check
15
16# Lint all crates; all warnings (Clippy and rustc) are treated as errors
17clippy:
18 cargo clippy --workspace -- -D warnings
19
20run-relay:
21 cargo run -p relay
22
23# Build the relay binary via Nix
24nix-build:
25 nix build .#relay --accept-flake-config
26
27# Build the Docker image via Nix (Linux only; on macOS use a remote Linux builder or CI)
28docker-build:
29 nix build .#docker-image --accept-flake-config
30
31# Run the full CI pipeline locally
32ci: fmt-check clippy test
33 cargo audit
34
35# Validate NixOS module evaluation (flake structure check).
36# For full smoke tests (ExecStart composition, option enforcement, configFile
37# escape hatch), run the nix eval commands in phase_03.md Tasks 2-5 manually.
38nix-check:
39 nix flake check --impure --accept-flake-config