After running cargo web, executing the wasm file results in this panic: > thread 'main' panicked at 'unknown name section chunk type: 7', src/wasm_context.rs:642:41 I fixed this in this commit: https://github.com/Badel2/cargo-web/commit/46b3637af68a2df6a17dffe152d2148180442aca By replacing the panic with an error. Not sure if this has any consequences, but it seems to work. If you encounter this problem you can use my fork: cargo install --git https://github.com/Badel2/cargo-web cargo-web