Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

wasm-pack

> 包管理
Open source

✨ your favorite rust -> wasm workflow tool!

7.3K stars0 likes1 views
WebsiteGitHub

About

✨ your favorite rust -> wasm workflow tool!

About

This tool seeks to be a one-stop shop for building and working with rust- generated WebAssembly that you would like to interop with JavaScript, in the browser or with Node.js. wasm-pack helps you build rust-generated WebAssembly packages that you could publish to the npm registry, or otherwise use alongside any javascript packages in workflows that you already use, such as webpack.

Prerequisites

This project requires Rust 1.30.0 or later.

  • Development Environment
  • Installation

⚡ Quickstart Guide

Visit the quickstart guide in our documentation.

️ Commands

  • new: Generate a new RustWasm project using a template
  • build: Generate an npm wasm pkg from a rustwasm crate
  • test: Run browser tests
  • pack and publish: Create a tarball of your rustwasm pkg and/or publish to a registry

Logging

wasm-pack uses env_logger to produce logs when wasm-pack runs.

To configure your log level, use the RUST_LOG environment variable. For example:

RUST_LOG=info wasm-pack build

Contributing

Read our guide on getting up and running for developing wasm-pack, and check out our contribution policy.

‍♀️ Governance

This project was started by ashleygwilliams and is maintained by drager.

Issues· 396 open

View all issuesOpen on GitHub
  • #1604

    `wasm-opt` download fails with "Unrecognized target!" on Windows ARM64, despite binaryen publishing an arm64-windows build

    Updated Sep 16, 2026
  • #1603

    Add support for `libstd` `optimize_for_size`

    Updated Sep 16, 2026
  • #1601

    Downstream distribution of wasm-bindgen and wasm-pack binaries

    Updated Sep 11, 2026
  • #1591

    add a way to generate `tsconfig.json` files and change the `"target"` property

    Updated Jun 12, 2026
  • #1441

    wasm-opt fail with [parse exception: invalid code after misc prefix: 17 (at 0:61491)]

    Updated Jun 10, 2026
  • #1588

    Have a checksum performed on pre-built binaries being downloaded

    Updated Jun 3, 2026
  • #1314

    Consider support for inline buffer of webassembly memory

    Updated Apr 28, 2026
  • #1569

    `wasm-pack build --release` intermittently fails with `[parse exception: Only 1 table definition allowed in MVP]`

    Updated Apr 20, 2026
  • #1566

    `snippets` are not included in `package.json` `files`

    Updated Apr 17, 2026
  • #1522

    [email protected]: Package no longer supported

    Updated Mar 30, 2026

> Tags

Rustclinpmpackageregistry

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image