#!/bin/bash
set -e

# Change to script directory
cd "$(dirname "$0")"

echo "Building herolib-virt..."
RUSTFLAGS="-A warnings" cargo build --release --features full

echo "Building documentation..."
RUSTFLAGS="-A warnings" cargo doc --no-deps

echo ""
echo "Build complete!"
