flags := ''

# Open zellij with dev stuff open
zellij:
    zellij -l dev.kdl a -c catwaiter-session

# Run the dev build
dev:
    cargo run --features desktop --target-dir target-desktop {{flags}}

# Profile a dev build (shouldn't be used for profiling)
dev-profile:
    cargo run --features remote-profile,profile,desktop --target-dir target-desktop {{flags}}

# Profile a release build
profile:
    cargo run --release --features remote-profile,profile,desktop --target-dir target-desktop {{flags}}

# Build a release build
build:
    cargo build --release --features desktop --target-dir target-desktop {{flags}}

build-wasm:
    cargo build --target wasm32-unknown-unknown --features web {{flags}}

trunk:
    trunk serve {{flags}}