emcc-bindgen-repro Repro for rust-lang/rust-bindgen#947 Building Before building you should have emsdk in your env. See this guide. cargo build --target=wasm32-unknown-emscripten You should see this error. Workaround Setting .trust_clang_mangling(false) worked for me.