default:
    just --list

# Development action
dev: stub
    uv run maturin dev

stub:
    cargo run -Fpython-bindings --bin stub_gen

doc:
    cargo doc --no-deps --open

build-python-linux: stub
    export RUSTFLAGS="-Ctarget-cpu=x86-64-v3"
    uv venv --python 3.12 --clear
    uv pip install maturin[patchelf]
    uv run maturin build --release

# Check code
check:
    clear
    cargo check --features "uldaq-api,cpal-api"

# Default test command with your preferred features
test64: check
    clear
    cargo test --no-default-features --features "test_features" --all-targets
    cargo test --no-default-features --features "test_features" --doc

test32:
    clear
    cargo test --no-default-features --features "test_features,f32" --all-targets
    cargo test --no-default-features --features "test_features,f32" --doc

test: test64 test32
t: test64
t32: test32
