Initial commit

This commit is contained in:
Diego Marcos
2025-05-23 08:52:14 -07:00
committed by Diego Marcos Segura
commit 3332f609a9
129 changed files with 64575 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# Exit on any error
$ErrorActionPreference = "Stop"
# Resolve the script's directory and change to it
Set-Location -Path (Split-Path -Parent $MyInvocation.MyCommand.Path)
# Check if rustup is installed
if (-not (Get-Command rustup -ErrorAction SilentlyContinue)) {
Write-Host "Rust tool 'rustup' not found! Please install Rust to build."
Write-Host "Visit: https://www.rust-lang.org/tools/install"
exit 1
}
# Ensure wasm32-unknown-unknown target is installed
rustup target add wasm32-unknown-unknown
# Check if wasm-pack is installed, and install if not
if (-not (Get-Command wasm-pack -ErrorAction SilentlyContinue)) {
cargo install wasm-pack
}
# Change directory and build using wasm-pack
Set-Location -Path "./forge-internal-rs"
wasm-pack build --target web