export CARGO_INCREMENTAL := "0"
export RUSTFLAGS := "-D warnings"

default:
    @echo "Run: just patch|minor|major"

major: (_release "major")
minor: (_release "minor")
patch: (_release "patch")

sqlx-prepare:
	cd server; cargo sqlx prepare && git add .sqlx; git commit -m "cargo sqlx prepare" .sqlx || true

pull:
    git pull


_release level: pull sqlx-prepare
    cargo-release release  -x {{ level }} --workspace --no-confirm --registry=xinu
