https://github.com/drager/wasm-pack
๐ฆโจ your favorite rust -> wasm workflow tool!
https://github.com/drager/wasm-pack
cli npm package registry rust rust-wasm wasm
Last synced: about 1 month ago
JSON representation
๐ฆโจ your favorite rust -> wasm workflow tool!
- Host: GitHub
- URL: https://github.com/drager/wasm-pack
- Owner: drager
- License: apache-2.0
- Created: 2018-02-12T14:04:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-11-30T13:33:16.000Z (about 1 month ago)
- Last Synced: 2025-12-11T17:21:21.048Z (about 1 month ago)
- Topics: cli, npm, package, registry, rust, rust-wasm, wasm
- Language: Rust
- Homepage: https://drager.github.io/wasm-pack/
- Size: 3.52 MB
- Stars: 6,987
- Watchers: 49
- Forks: 465
- Open Issues: 384
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ccamel - drager/wasm-pack - ๐ฆโจ your favorite rust -> wasm workflow tool! (Rust)
- fucking-awesome-rust - wasm-pack - :package: :sparkles: pack up the wasm and publish it to npm! (Development tools / FFI)
- awesome-rust - wasm-pack - :package: :sparkles: pack up the wasm and publish it to npm! (Development tools / FFI)
README
## 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].
[webpack]: https://webpack.js.org/

## ๐ฎ Prerequisites
This project requires Rust 1.30.0 or later.
- [Development Environment](https://drager.github.io/wasm-pack/book/prerequisites/index.html)
- [Installation](https://drager.github.io/wasm-pack/installer)
## โก Quickstart Guide
Visit the [quickstart guide] in our documentation.
[quickstart guide]: https://drager.github.io/wasm-pack/book/quickstart.html
## ๐๏ธ Commands
- [`new`](https://drager.github.io/wasm-pack/book/commands/new.html): Generate a new RustWasm project using a template
- [`build`](https://drager.github.io/wasm-pack/book/commands/build.html): Generate an npm wasm pkg from a rustwasm crate
- [`test`](https://drager.github.io/wasm-pack/book/commands/test.html): Run browser tests
- [`pack` and `publish`](https://drager.github.io/wasm-pack/book/commands/pack-and-publish.html): 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
```
[`env_logger`]: https://crates.io/crates/env_logger
## ๐ฏ Contributing
Read our [guide] on getting up and running for developing `wasm-pack`, and
check out our [contribution policy].
[guide]: https://drager.github.io/wasm-pack/book/contributing.html
[contribution policy]: CONTRIBUTING.md
## ๐คนโโ๏ธ Governance
This project was started by [ashleygwilliams] and is maintained by [drager].
[ashleygwilliams]: https://github.com/ashleygwilliams
[drager]: https://github.com/drager