Files
narl-workspace/Makefile
T
nvrl c606169b01 test: cover session tokens, and run the suite in make check
auth.rs was the largest untested surface and the one where a mistake is
worth the most: the tests pin the round trip, expiry, secret rotation,
forged expiries, flipped signature bytes, malformed input, and that
credentials have to match in full rather than by prefix.

Also documents autosave, :export! and the security headers in the README.
2026-09-05 09:48:24 +02:00

26 lines
516 B
Makefile

.PHONY: dev dev-api dev-web build run check clean
# Two terminals: `make dev-api` and `make dev-web` (http://127.0.0.1:4243).
dev-api:
cargo run
dev-web:
cd web && bun run dev
# Everything, as one self-contained release binary at target/release/narl-diary.
build:
cd web && bun install && bun run build
cargo build --release
run: build
./target/release/narl-diary
check:
cargo clippy --all-targets -- -D warnings
cargo test
cd web && bun run check
clean:
cargo clean
rm -rf web/dist web/node_modules