#!/bin/bash

# Build script for herolib-ai
# Builds the library and generates documentation

set -e

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

echo "Building herolib-ai..."
cargo build --release

echo ""
echo "Generating documentation..."
cargo doc --no-deps

echo ""
echo "Build completed successfully!"
echo "Documentation available at: target/doc/herolib_ai/index.html"
