65 releases (21 breaking)

new 0.21.0-alpha.2 May 24, 2024
0.20.0-rc.1 Apr 26, 2024
0.19.1 Mar 13, 2024
0.18.3 Dec 20, 2023
0.7.4 Oct 23, 2020

#866 in WebAssembly

Download history 3330/week @ 2024-02-02 4120/week @ 2024-02-09 3265/week @ 2024-02-16 3296/week @ 2024-02-23 3205/week @ 2024-03-01 4634/week @ 2024-03-08 3527/week @ 2024-03-15 2631/week @ 2024-03-22 2822/week @ 2024-03-29 2758/week @ 2024-04-05 4340/week @ 2024-04-12 3072/week @ 2024-04-19 3706/week @ 2024-04-26 3531/week @ 2024-05-03 3472/week @ 2024-05-10 2337/week @ 2024-05-17

13,497 downloads per month

MIT/Apache

360KB
8K SLoC

Trunk

Build Status Discord Chat

Build, bundle & ship your Rust WASM application to the web.
”Pack your things, we’re going on an adventure!” ~ Ferris

Trunk is a WASM web application bundler for Rust. Trunk uses a simple, optional-config pattern for building & bundling WASM, JS snippets & other assets (images, css, scss) via a source HTML file.

📦 Dev server - Trunk ships with a built-in server for rapid development workflows, as well as support for HTTP & WebSocket proxies.

🏗 Change detection - Trunk watches your application for changes and triggers builds for you, including automatic browser reloading.

Getting Started

Head on over to the Trunk website, everything you need is there. A few quick links:

Examples

Check out the example web applications we maintain in-repo under the examples directory.

Contributing

Anyone and everyone is welcome to contribute! Please review the CONTRIBUTING.md document for more details. The best way to get started is to find an open issue, and then start hacking on implementing it. Letting other folks know that you are working on it, and sharing progress is a great approach. Open pull requests early and often, and please use GitHub's draft pull request feature.

License

trunk is licensed under the terms of the MIT License or the Apache License 2.0, at your choosing.

Dependencies

~45–62MB
~1M SLoC