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

31 lines
726 B
Makefile

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
[arg("data", short="d")]
[arg("config", short="c")]
preview data="data/test/aoc-response.json" \
config="data/test/srv-config.toml" \
port="8080":
AOC_TEST_DATA="$(cat '{{ data }}')" \
cargo run -- serve -c '{{ config }}' -l '[::]:{{ port }}'
release:
RUSTFLAGS="\
-Z fmt-debug=none \
-C link-arg=-fuse-ld=lld \
-C force-unwind-tables=no \
" \
cargo build --release