An easy-to-host PDS on the ATProtocol, MacOS. Grandma-approved.

feat(MM-67): add Justfile with build recipes #5

merged opened by malpercio.dev targeting main from malpercio/mm-67-justfile-with-build-recipes

Adds a justfile with check, build, test, fmt, fmt-check, clippy, run-relay, nix-build, docker-build, and ci recipes. The ci recipe chains fmt-check, clippy, test, and cargo-audit to mirror the CI pipeline.

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:web:malpercio.dev/sh.tangled.repo.pull/3mglgehw5bc22
+5 -11
Interdiff #0 #1
+3 -9
justfile
··· 1 - # Check all crates for errors without producing binaries 2 1 check: 3 2 cargo check --workspace 4 3 5 - # Build all crates 6 4 build: 7 5 cargo build --workspace 8 6 9 - # Run all tests 10 7 test: 11 8 cargo test --workspace 12 9 13 - # Format all code 14 10 fmt: 15 11 cargo fmt --all 16 12 17 - # Check formatting without modifying files 18 13 fmt-check: 19 - cargo fmt --all -- --check 14 + cargo fmt --all --check 20 15 21 - # Lint with warnings as errors 16 + # Lint all crates; all warnings (Clippy and rustc) are treated as errors 22 17 clippy: 23 18 cargo clippy --workspace -- -D warnings 24 19 25 - # Run the relay server 26 20 run-relay: 27 21 cargo run -p relay 28 22 ··· 30 24 nix-build: 31 25 nix build .#relay --accept-flake-config 32 26 33 - # Build the Docker image via Nix (Linux only) 27 + # Build the Docker image via Nix (Linux only; on macOS use a remote Linux builder or CI) 34 28 docker-build: 35 29 nix build .#docker-image --accept-flake-config 36 30
+2 -2
CLAUDE.md
··· 14 14 - `nix build .#docker-image --accept-flake-config` - Build Docker image tarball (Linux only; output at `./result`; load with `docker load < result`; `docker-image` is not exposed on macOS — use a remote Linux builder or CI) 15 15 - `cargo build` - Build all crates 16 16 - `cargo test` - Run all tests 17 - - `cargo clippy` - Lint 18 - - `cargo fmt --check` - Check formatting 17 + - `cargo clippy --workspace -- -D warnings` - Lint (warnings as errors) 18 + - `cargo fmt --all --check` - Check formatting 19 19 20 20 ## Dev Environment 21 21 - Managed entirely by Nix flake + devenv; do not install tools globally

History

2 rounds 0 comments
sign up or login to add to the discussion
2 commits
expand
feat(MM-67): add Justfile with build recipes
fix(MM-67): address PR review — fmt-check flag, clippy comment, CLAUDE.md alignment
expand 0 comments
pull request successfully merged
1 commit
expand
feat(MM-67): add Justfile with build recipes
expand 0 comments