Announcing Trunk β€” Build, bundle & ship your Rust WASM application to the web

I am happy to announce the very first release of Trunk. Trunk is a CLI tool, written in Rust, which provides a simple, zero-config pattern for building Rust WebAssembly applications, bundling application assets (sass, css, images &c) and shipping it all to the web.

Trunk is designed for creating progressive, single-page web applications, written in Rust, compiled to WebAssembly, without any JS (though today JS is still needed for loading WASM modules). Trunk follows a simple paradigm: declare an index.html file describing the single page of your application, then Trunk will parallelize bundling assets declared in your HTML, will build your WASM app, hash resources for cache control ... all without any extra config files.

If you are interested in getting involved (which I hope you are), I would love for you to help out. There are lots of great features planned, and many still in the design phase. I hope you will stop by, give the issues a read, share any thoughts if you feel so inclined, and if you want to write some code, please do!

”Pack your things, we’re going on an adventure!” ~ Ferris

1 Like

Just a quick update for anyone that decided to take things for a spin since this post. Version 0.1.2 is now released.

  • fixes an issue with Windows builds (I'm not a Windows user, and didn't have CI setup at the time, so it slipped through the cracks).
  • swaps out the sass/scss engine, as the original engine was not able to compile sass libraries like bulma & vuetify sass.
  • a few other small items documented in the changelog.