wasm-bindgen/examples/raytrace-parallel
Alex Crichton 5b76a6291e Implement Deref for all imported JS types
This commit implements the first half of [RFC #5] where the `Deref`
trait is implemented for all imported types. The target of `Deref` is
either the first entry of the list of `extends` attribute or `JsValue`.

All examples using `.as_ref()` with various `web-sys` types have been
updated to the more ergonomic deref casts now. Additionally the
`web-sys` generation of the `extends` array has been fixed slightly to
explicitly list implementatoins in the hierarchy order to ensure the
correct target for `Deref` is chosen.

[RFC #5]: https://github.com/rustwasm/rfcs/blob/master/text/005-structural-and-deref.md
2018-11-08 11:01:34 -08:00
..
src Implement Deref for all imported JS types 2018-11-08 11:01:34 -08:00
.gitignore Implement support for WebAssembly threads 2018-10-23 01:20:18 -07:00
build.sh Promote CI jobs to using stable Rust 2018-10-28 13:28:02 -07:00
Cargo.toml Don't use path dependencies in examples 2018-11-07 11:27:43 -08:00
index.html Implement support for WebAssembly threads 2018-10-23 01:20:18 -07:00
index.js Indicate workable browsers 2018-10-23 08:50:58 -07:00
README.md Implement support for WebAssembly threads 2018-10-23 01:20:18 -07:00
worker.js Implement support for WebAssembly threads 2018-10-23 01:20:18 -07:00
Xargo.toml Implement support for WebAssembly threads 2018-10-23 01:20:18 -07:00

Parallel Raytracing

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!