Installation
This guide walks you through installing rust-wasmpack-loader.
Prerequisitesβ
tip
For toolchain setup, see the Prerequisites Guide.
Version compatibilityβ
Pick the loader version that matches your toolchain.
| rust-wasmpack-loader | Webpack-node | Webpack-web | Bun | Node.js | Rust |
|---|---|---|---|---|---|
| 4.x.x | ^5.0.0 | ^5.0.0 | 1.x.x | >=22.22.2 | >=1.88.0 |
| 3.x.x | ^5.0.0 | ^5.0.0 | 1.x.x | >=20.0.0 | >=1.85.1 |
| 2.x.x | ^5.0.0 | ^5.0.0 | β | >=16.0.0 | >=1.30.0 |
| 1.x.x | ^5.0.0 | β | β | >=16.0.0 | >=1.30.0 |
| 0.x.x | β οΈ | β | β | >=14.0.0 | >=1.30.0 |
Install the packageβ
Install rust-wasmpack-loader with your package manager. Drop the dev flag if you need it as a regular dependency.
- npm
- yarn
- bun
npm install rust-wasmpack-loader
# or install as dev dependency
npm install --save-dev rust-wasmpack-loader
yarn add rust-wasmpack-loader
# or install as dev dependency
yarn add --dev rust-wasmpack-loader
bun add rust-wasmpack-loader
# or install as dev dependency
bun add -d rust-wasmpack-loader
Next stepsβ
With the loader installed, here is where to go next:
- Quick Start - create your first Rust-WASM project
- Examples - working examples for each build tool
- API Reference - available options and configuration
info
Questions or bugs? Open an issue on GitHub.