#!/bin/bash

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

set -e

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

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

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

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