Getting started - Hello wasm-pack! (original) (raw)
- 1. Introduction
- 2. Quickstart
- 3. Prerequisites
- 4. Commands
- 5. Tutorials
- 6. Cargo.toml Configuration
- 7. Contributing
This documentation isno longer maintained at this domain, and is now maintained at drager.github.io/wasm-pack instead.
Hello wasm-pack!
You can create a new Rust-WebAssembly project by using the rustwasm wasm-pack-template.
To so do, you'll need the cargo-generate tool. To install cargo-generate:
cargo install cargo-generate
Then run:
cargo generate --git https://github.com/rustwasm/wasm-pack-template
You will be prompted to give your project a name. Once you do, you will have a directory with a new project, ready to go. We'll talk about what's been included in this template further in this guide.
⚠️ If you'd rather not use a template, or are having trouble with the template, you can do a manual setup by following these instructions.