# V2 Rust Cross Compilation

`V2/ue/Build/Rust/v2-rust-cross-compilation.json` defines cross-compilation
support for Linux server binaries from macOS and Windows hosts plus WASM output
targets. The companion Cargo config is
`V2/ue/Build/Rust/cargo-cross-config.toml`.

Linux server targets use `cargo zigbuild` with Zig linkers for
`x86_64-unknown-linux-gnu` and `aarch64-unknown-linux-gnu`. This lets macOS and
Windows build agents produce Linux server artifacts for packages such as
`egbe-world-server`, `egbe-realtime-gateway`, `moremi-realm-server`, and
`danu-mesh-cluster`.

WASM targets cover `wasm32-unknown-unknown`, `wasm32-wasip1`, and
`wasm32-wasip2`. WASM package plans include browser/runtime-facing crates such
as `maya-plugin-api`, `neith-runtime`, and `v7-dev-hygiene`.

The planner is:

```bash
python3 V2/ue/Tools/plan-v2-rust-cross-compile.py \
  --manifest V2/ue/Build/Rust/v2-rust-cross-compilation.json \
  --json-out /tmp/v2-rust-cross-plan.json
```

Horde publishes `$(ArchiveRoot)/Rust/cross-compilation-plan.json` and gates
Linux server target coverage with `rust-cross-linux-server-plan` and WASM target
coverage with `rust-cross-wasm-target-plan`.
