# quicproquo v2 — build commands

# Default: build all workspace crates
build:
    cargo build --workspace

# Run all tests
test:
    cargo test --workspace

# Run core crypto tests only
test-core:
    cargo test -p quicproquo-core

# Build proto crate (triggers prost codegen)
proto:
    cargo build -p quicproquo-proto

# Build RPC framework
rpc:
    cargo build -p quicproquo-rpc

# Build SDK
sdk:
    cargo build -p quicproquo-sdk

# Build server
server:
    cargo build -p quicproquo-server

# Build client
client:
    cargo build -p quicproquo-client

# Check all with clippy
lint:
    cargo clippy --workspace -- -D warnings

# Format check
fmt:
    cargo fmt --all -- --check

# Format fix
fmt-fix:
    cargo fmt --all

# Clean build artifacts
clean:
    cargo clean
