Duolith docs

Errors E0300 to E0399

E0300 Rust module tools missing

Message Building Rust modules for the web needs tool

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A folder in modules/ with a Cargo.toml is a Rust module, which duolith build compiles to WebAssembly with cargo (for the wasm32-unknown-unknown target) and binds for the page's script with wasm-bindgen (decision 0078). One of them is not installed, or failed to run.

How to fix it

Run rustup target add wasm32-unknown-unknown and cargo install wasm-bindgen-cli --version 0.2.130 --locked, then build again.

In a terminal

duolith explain E0300

Mentioned in