mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-12 11:11:12 +03:00
56400c3738
This commit updates all examples to not use `path` dependencies but rather use versioned dependencies like would typically be found in the wild. This should hopefully make the examples more copy-pastable and less alien to onlookers! The development of the examples remains the same where they continue to use the `wasm-bindgen`, `js-sys`, `web-sys`, etc from in-tree. The workspace-level `[patch]` section ensures that they use the in-tree versions instead of the crates.io versions. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
build.sh | ||
Cargo.toml | ||
index.js | ||
package.json | ||
README.md | ||
webpack.config.js |
Adding numbers (small wasm files)
View documentation for this example online or View compiled example online
You can build the example locally with:
$ ./build.sh
(or running the commands on Windows manually)
and then visiting http://localhost:8080 in a browser should run the example!