Trunk is a WASM web application bundler for Rust that builds, bundles, and ships Rust applications compiled to WebAssembly for the web.
Trunk solves the problem of managing complex build pipelines for Rust WASM projects by providing a unified bundler that handles compilation, asset management, and deployment through a simple configuration pattern. It works by using a source HTML file as the entry point, automatically discovering and bundling WASM modules, JavaScript snippets, images, CSS, and SCSS assets. The tool includes a built-in development server with file watching and automatic browser reloading, plus support for HTTP and WebSocket proxies to streamline the development workflow.
Developers building Rust WASM web applications should choose Trunk if they want to avoid complex build configuration and prefer a batteries-included approach. It suits projects of any scale that target the web, from small experiments to production applications. The tool is particularly valuable for teams wanting rapid iteration cycles without manually orchestrating multiple build steps. The project maintains example applications in its repository to help new users get started quickly.
The project shows active engagement with contributors through its documented contribution process and use of draft pull requests for early feedback. Development activity includes regular maintenance of the bundler's core functionality and ongoing support for the ecosystem of Rust WASM tooling. The project maintains comprehensive documentation covering installation, configuration, and CLI commands on its dedicated website.