default:
    @just --list

audit: audit-package audit-workflows

audit-package:
    cargo deny check
    uv audit --preview-features audit-command

audit-workflows:
    zizmor .

build: build-package

build-package:
    cargo build --release --workspace

check: lint audit test build

format: format-package

format-package:
    cargo clippy --fix --allow-dirty --allow-staged --workspace --all-targets
    cargo fmt --all

install: install-package

install-package:
    cargo fetch

lint: lint-package

lint-package:
    cargo fmt --all --check
    cargo clippy --workspace --all-targets -- -D warnings

refresh: install update format check

test: test-package

test-package:
    cargo test --workspace

update: update-package

update-package:
    cargo upgrade --incompatible
    cargo update

