Trunk is a WebAssembly build tool and orchestrator designed to automate the process of transforming Rust source code into deployable web applications. It serves as a frontend bundler that packages WebAssembly binaries along with HTML and static assets for browser deployment.
The system utilizes an HTML-driven build orchestration model, using the index HTML file as the primary configuration source to determine entry points and dependencies. It integrates with the Rust compiler and associated toolchains to transform code into optimized binaries and glue code.
The tool provides a development environment featuring a local HTTP server with hot-reloading file watching and a static asset pipeline. It also handles content-hash asset versioning to ensure browsers load updated versions of static files.