build:
    pnpm tauri build

dev:
    pnpm tauri dev

tauri_path := "src-tauri"

fmt:
    pnpm prettier --write "**/*.svelte" "**/*.ts"
    cd {{tauri_path}} && cargo fmt

lint:
    cd {{tauri_path}} && cargo clippy

test:
    cd {{tauri_path}} && cargo test --lib -- --test-threads=1

test-integration:
    cd {{tauri_path}} && cargo test --test integration -- --test-threads=1 --nocapture

test-all:
    cd {{tauri_path}} && cargo test --release

bench:
    cd {{tauri_path}} && cargo bench

cov:
    cd {{tauri_path}} && cargo llvm-cov run

mutants:
    cd {{tauri_path}} && cargo mutants

clean:
    rm -rf node_modules
    cd {{tauri_path}} && cargo clean
