Files
aoc-srv/justfile
2026-11-24 23:38:38 +01:00

40 lines
871 B
Makefile

make-web:
bun --cwd=web ci
bun --cwd=web run build
hack *args:
cargo hack {{ args }} \
--feature-powerset \
--mutually-exclusive-features native-tls,rustls \
--at-least-one-of native-tls,rustls
pre-commit:
codespell
just hack check --quiet
cargo clippy
cargo fmt --check
nix fmt
nix flake check
just -d web check
[arg("data", short="d")]
[arg("config", short="c")]
preview data="data/test/aoc-response.json" \
config="data/test/srv-config.toml" \
port="8080":
just make-web
AOC_TEST_DATA="$(cat '{{ data }}')" \
cargo run -- --log=trace \
serve -c '{{ config }}' -l '[::]:{{ port }}'
release:
just make-web
RUSTFLAGS="\
-Z fmt-debug=none \
-C link-arg=-fuse-ld=lld \
-C force-unwind-tables=no \
" \
cargo build --release