Showing content from https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/index.html below:
npm browser packages - Hello wasm-pack!
npm browser packages - Hello wasm-pack!
- 1. Introduction
- 2. Quickstart
- 3. Prerequisites
-
- 3.1. npm (optional)
- 3.2. considerations
- 3.3. Non-rustup setups
- 4. Commands
-
- 4.1. new
- 4.2. build
- 4.3. test
- 4.4. pack and publish
- 4.5. init (DEPRECATED)
- 5. Tutorials
-
- 5.1. Hybrid applications with Webpack
-
- 5.1.1. Getting started
- 5.1.2. Using your library
- 5.2. npm browser packages
-
- 5.2.1. Getting started
-
- 5.2.1.1. Manual Setup
- 5.2.2. Template deep dive
-
- 5.2.2.1. Cargo.toml
- 5.2.2.2. src/lib.rs
- 5.2.2.3. src/utils.rs
- 5.2.2.4. wee_alloc
- 5.2.2.5. tests/web.rs
- 5.2.3. Building your project
- 5.2.4. Testing your project
- 5.2.5. Packaging and publishing
- 5.2.6. Using your library
- 6. Cargo.toml Configuration
- 7. Contributing
This documentation is no longer maintained at this domain, and is now maintained at drager.github.io/wasm-pack instead.
Hello wasm-pack! npm Browser Package Tutorial
The goal of this tutorial is to introduce you to the wasm-pack
workflow by building a small npm package designed to be used in a browser application.
This tutorial is aimed at folks who are both beginners to WebAssembly and Rust- you don't need much Rust knowledge to complete this tutorial.
Be sure to have done the following before starting:
- Install
wasm-pack
- Read and install the Prerequisites.
⚠️ We strongly recommend that you install Node.js using a version manager. You can learn more here.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4