Debian Codegraph @

.cargo/vendor/wasm-bindgen/guide/src/examples/index.md

raw
1 # Examples of using `wasm-bindgen`, `js-sys`, and `web-sys`
2
3 This subsection contains examples of using the `wasm-bindgen`, `js-sys`, and
4 `web-sys` crates. Each example should have more information about what it's
5 doing.
6
7 These examples all assume familiarity with `wasm-bindgen`, `wasm-pack`, and
8 building a Rust and WebAssembly project. If you're unfamiliar with these check
9 out the [Game of Life tutorial][gol] or [wasm pack tutorials][wpt] to help you
10 get started.
11
12 The source code for all examples can also be [found online][code] to download
13 and run locally. Most examples are configured with Webpack/`wasm-pack` and can
14 be built with `npm run serve`. Other examples which don't use Webpack are
15 accompanied with instructions or a `build.sh` showing how to build it.
16
17 Note that most examples currently use Webpack to assemble the final output
18 artifact, but this is not required! You can review the [deployment
19 documentation][deploy] for other options of how to deploy Rust and WebAssembly.
20
21 [code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples
22 [gol]: https://rustwasm.github.io/docs/book/
23 [deploy]: ../reference/deployment.html
24 [wpt]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html