Neon sunglasses logo

troels.im

Level Up Your Coding Game with AI & Rust!

Made with ❤️ by @troels_im

Raining colors

Blog

Latest articles and thoughts

This blog post addresses a common error encountered when building Rust WebAssembly projects with Trunk, particularly after Rust 1.82.0. The error stems from the introduction of "bulk memory operations" in the Rust compiler, which are not supported by older versions of `wasm-opt`. The post outlines three solutions: updating `wasm-opt` to the latest version (recommended), configuring Trunk to pass the `--enable-bulk-memory` flag to `wasm-opt`, or disabling bulk memory operations in the Rust compiler. It emphasizes the importance of addressing this issue for production builds to avoid build failures and performance impacts, and provides practical advice on checking tool versions and staying updated with the evolving WebAssembly ecosystem.