14 releases

0.17.16 Nov 29, 2023
0.17.15 Nov 27, 2023
0.17.11 Oct 24, 2023
0.17.7 Sep 29, 2023
0.17.6 Aug 21, 2023

#1228 in WebAssembly

Download history 8/week @ 2024-09-22 2/week @ 2024-09-29

743 downloads per month

MIT/Apache

260KB
5.5K SLoC

Trunk NG

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.

[!NOTE] This is a forked version of trunk, adding features and bug fixes which didn't get merged into trunk so far. Replace trunk with trunk-ng for all operations.

📦 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-ng 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-ng is licensed under the terms of the MIT License or the Apache License 2.0, at your choosing.

Dependencies

~42–59MB
~1M SLoC