Add OpenAPI generation xtask

This commit is contained in:
Daniel Lundin 2024-12-11 21:12:24 +01:00
parent ac6a53fac9
commit a4097b7cc3
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
14 changed files with 268 additions and 78 deletions

View file

@ -12,10 +12,6 @@ run-controller $RUST_LOG="debug,h2=info,hyper_util=info,tower=info":
dev-controller:
watchexec --clear --restart --stop-signal INT --debounce 300ms -- just run-controller
# Run all tests
check:
nix flake check
# Lint all source code
lint:
cargo clippy
@ -39,3 +35,14 @@ update-nix:
# Find unused dependencies with cargo machete
machete:
cargo machete
# Generate OpenAPI spec
open-api:
cargo xtask open-api
# Run all tests
check: check-nix
# check-nix
check-nix:
nix flake check