# Build Module — Core build operations for ontoref
# =================================================

# Build all crates (all targets, all features)
build-all:
    @echo "Building all targets..."
    cargo build --all-targets

# Build ontoref-daemon in release mode and install
build-daemon: build-css
    cargo build --release -p ontoref-daemon
    nu install/install.nu

# Build UnoCSS bundle for the daemon UI
build-css:
    cd assets/css && pnpm install && pnpm run build

# Build without stratumiops dependencies (standalone)
build-standalone:
    cargo build -p ontoref-ontology
    cargo build -p ontoref-daemon --no-default-features

# Check all crates compile (fast feedback, no codegen)
check:
    cargo check --all-targets --all-features
