This repo is an assorted collection of utilities for working with Warcraft 3: CE and Rust.
Most interesting right now - libraries for using Rust in WC3. The test
directory includes a sample project that can get you up to speed using WASM in WC3.
Quickstart guide:
- Get rustup
rustup toolchain install nightly
to install the latestnightly
Rust toolchainrustup target add wasm32-unknown-unknown
to pull in the WASM target toolsrustup override set nightly
setnightly
as default channel for this repocargo build --release --target wasm32-unknown-unknown --bin war3map
to buildwar3map.wasm
from thetest/
project.target/wasm32-unknown-unknown/target/war3map.wasm
is now the compiled WASM binary - add it to a.w3x
and try to run it in W3CE!