Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

create-rust-rollup

dtcristo19(MIT OR Apache-2.0)0.2.0

Kickstart your Rust, WebAssembly, and Rollup project!

readme

rust-rollup-template

Kickstart your Rust, WebAssembly, and Rollup project!

About

This template is designed for creating monorepo-style Web applications with Rust-generated WebAssembly and Rollup without publishing your WASM to NPM.

Be sure to check out other wasm-pack tutorials online for other templates and usages of wasm-pack.

🚴 Using This Template

You can use npm init to clone this template:

npm init rust-rollup my-app

🔋 Batteries Included

This template comes pre-configured with all the boilerplate for compiling Rust to WebAssembly and hooking into a Rollup build pipeline.

  • script/start -- Serve the project locally for development at localhost:10001. It auto-reloads when you make any changes.

  • script/build -- Bundle the project (in production mode).

  • script/test -- Run the project's unit tests.