Let's port our examples to the 2018 edition!
cargo fix --editionedition = "2018" to the [package] section of the example's Cargo.tomlcargo check --target wasm32-unknown-unknowncargo fix --edition-idioms and remove all extern crate directivesThe 2018 edition guide might be helpful reading.
examples/add/examples/canvas/examples/char/examples/closures/examples/console_log/examples/dom/examples/duck-typed-interfaces/examples/fetch/examples/guide-supported-types-examples/examples/hello_world/examples/import_js/examples/julia_set/examples/no_modules/examples/paint/examples/performance/examples/raytrace-parallel/examples/README.mdexamples/todomvc/examples/wasm2js/examples/wasm-in-wasm/examples/webaudio/examples/webgl/Can I work on add, canvas, char, and hello_world?
Already tried running cargo fix --edition on a few examples, and they mostly work without any warnings or issues. So, they only change necessary for those cases is to add edition = "2018" on Cargo.toml?
@andrehjr sure thing, and thanks! Not all examples may need items fixed, so often edition = "2018" is good enough. Afterwards though you can also try cargo fix --edition-idioms and also try removing extern crate annotations and such.
I will pickup the console_log as a start.
PS: I've added closure and duck-typed-interfaces as well. Will try to do more today.
Picking up webgl, webaudio, wasm-in-wasm and todomvc
I'll pickup dom, fetch, guide-supported-types-examples, import_js.
I will try to implement julia_set, no_modules, paint and performance
Will try raytrace-parallel now!
Edit: also wasm2js
Thanks all for all the assistance!
Thanks everyone! ^_^
The least I can do and still be useful :blush: Thanks also for your quick responses!
I'm really happy to contribute wasm-bindgen!
Thank you so much 馃槉
Most helpful comment
Thanks all for all the assistance!