mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
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.
26 lines
516 B
Makefile
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
|