Trunk is a modern web application bundler specifically designed for Rust and WebAssembly projects, providing a streamlined workflow for building, packaging, and deploying frontend applications. It operates around a minimal-configuration philosophy, using a single HTML entry point to orchestrate the bundling of WebAssembly modules, JavaScript snippets, stylesheets, and other assets. This approach simplifies the build process compared to traditional bundlers by reducing the need for complex configuration files while still offering flexibility when needed. Trunk integrates seamlessly with Rust’s toolchain, enabling developers to compile Rust code into WebAssembly and automatically include it in web applications. It also supports features such as asset hashing, live reloading during development, and built-in development servers, making it suitable for both prototyping and production workflows.
Features
- Minimal configuration bundler driven by a single HTML entry file
- Seamless integration with Rust and WebAssembly build workflows
- Supports bundling of JS, CSS, SCSS, and static assets
- Built-in development server with live reload capabilities
- Asset hashing and optimization for production builds
- Optional configuration for advanced customization and deployment