#cli #pack #npm #registry #package #workflow

bin+lib wasm-pack

📦✨ your favorite rust -> wasm workflow tool!

18 releases (9 breaking)

Uses old Rust 2015

0.10.2 Dec 16, 2021
0.10.1 Sep 5, 2021
0.10.0 Jul 2, 2021
0.9.1 Feb 8, 2020
0.1.0 Mar 16, 2018

#28 in WebAssembly

Download history 4318/week @ 2021-10-03 4223/week @ 2021-10-10 3948/week @ 2021-10-17 4150/week @ 2021-10-24 3052/week @ 2021-10-31 4170/week @ 2021-11-07 4270/week @ 2021-11-14 2896/week @ 2021-11-21 7513/week @ 2021-11-28 5672/week @ 2021-12-05 6444/week @ 2021-12-12 3474/week @ 2021-12-19 2936/week @ 2021-12-26 4301/week @ 2022-01-02 5317/week @ 2022-01-09 5103/week @ 2022-01-16

17,898 downloads per month
Used in 5 crates

MIT/Apache

425KB
3.5K SLoC

📦✨ wasm-pack

Your favorite Rust → Wasm workflow tool!

Build Status crates.io

Docs | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

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.

This project is a part of the rust-wasm group. You can find more info by visiting that repo!

demo

🔮 Prerequisities

This project requires Rust 1.30.0 or later.

⚡ 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 is part of the rustwasm Working Group.

This project was started by ashleygwilliams and is co-maintained by ashleygwilliams, drager and the Rust Wasm Working Group Core Team.

Dependencies

~39MB
~836K SLoC