From 4855199f5204f302827740705ac075e00171d58c Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 28 Feb 2025 21:33:52 +0100 Subject: [PATCH] add toolchain information on the setup page --- src/setup.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/setup.md b/src/setup.md index 4052bae..3a3d16b 100644 --- a/src/setup.md +++ b/src/setup.md @@ -4,6 +4,11 @@ Before we can start developing, a few prerequisites must be fulfilled. ## The Rust toolchain +Because Lua relies on some libc functions that aren't available in bare-bones WebAssembly (aka `wasm32-unknown-unknown`), the `wasm32-unknown-emscripten` toolchain is used, which provides a custom libc implementation. +The downside of this toolchain is the compatability with the existing Rust WebAssembly ecosystem. +Some crates that state to have WebAssembly support, are only supporting `wasm32-unknown-unknown` which might lead to some compatability problems. + +To add the toolchain via rustup, use: ```shell rustup target add wasm32-unknown-emscripten ```