|
| 1 | +--- |
| 2 | +title: "This Week in Rust and WebAssembly 11" |
| 3 | +--- |
| 4 | + |
| 5 | +Hello and welcome to another issue of *This Week in Rust and WebAssembly*! |
| 6 | + |
| 7 | +[Rust](https://rust-lang.org) is a systems language pursuing the trifecta: |
| 8 | +safety, concurrency, and speed. |
| 9 | + |
| 10 | +[WebAssembly](http://webassembly.org) is a stack-based virtual machine and |
| 11 | +instruction set. It is fast, safe, portable, and part of the open Web |
| 12 | +platform. By compiling to WebAssembly, we can run Rust code on the Web! |
| 13 | + |
| 14 | +This is a weekly summary of Rust and WebAssembly's progress and community. |
| 15 | + |
| 16 | +Did we miss something? Tweet to us at [@rustwasm](https://twitter.com/rustwasm) |
| 17 | +or [send us a pull request](https://github.com/rustwasm/rustwasm.github.io). |
| 18 | + |
| 19 | +**Want to get involved in Rust and WebAssembly? [Join the Rust and WebAssembly working group!][get-involved]** |
| 20 | + |
| 21 | +<!-- TODO: check recent r/rust and users.rust-lang.org posts for "wasm" and "webassembly": --> |
| 22 | + |
| 23 | +## News and Blog Posts from Around the Web |
| 24 | + |
| 25 | +*Want to make sure something ends up on this list next time we publish an issue? |
| 26 | +[Leave a comment on this issue.](https://github.com/rustwasm/team/issues/79)* |
| 27 | + |
| 28 | +* [Parsing and rendering PSD files in the browser with Rust and |
| 29 | + WebAssembly](https://twitter.com/chinedufn/status/1098418821591957504) |
| 30 | +* [Programmatically generating Islamic |
| 31 | + stars](https://twitter.com/fitzgen/status/1097941877884473344) using the |
| 32 | + "Polygons in Contact" method with Rust-generated Wasm and Web GL |
| 33 | + * [Live demo](https://johanneshoff.com/geotoy/) |
| 34 | + * [Source](https://github.com/fitzgen/geotoy) |
| 35 | +* [Dust is a renderer written in Rust that has a backend for Wasm and Web |
| 36 | + GL](https://twitter.com/AsgerNyman/status/1096389338211016705) |
| 37 | + * [Live demo](https://asny.github.io/spider-web/index.html) |
| 38 | + * [Source](https://github.com/asny/Dust) |
| 39 | + |
| 40 | +## Updates from [`rustwasm/*`](https://github.com/rustwasm) |
| 41 | + |
| 42 | +### RFCs |
| 43 | + |
| 44 | +#### New RFCs |
| 45 | + |
| 46 | +None. |
| 47 | + |
| 48 | +#### Merged RFCs |
| 49 | + |
| 50 | +None. |
| 51 | + |
| 52 | +### `console_error_panic_hook` |
| 53 | + |
| 54 | +* @fitzgen [added error |
| 55 | + stacks](https://github.com/rustwasm/console_error_panic_hook/pull/10) to the |
| 56 | + message we log when a panic occurs. This works around bugs in both Safari's |
| 57 | + and Firefox's developer tools consoles. |
| 58 | + |
| 59 | +### `js-sys` |
| 60 | + |
| 61 | +* @Pauan [added convenience getters to |
| 62 | + `js_sys::Reflect`](https://github.com/rustwasm/wasm-bindgen/pull/1225) for |
| 63 | + getting properties keyed by `u32` and `f64`. |
| 64 | + |
| 65 | +### Twiggy🌱 |
| 66 | + |
| 67 | +* @data-pup [fixed some unused-result |
| 68 | + warnings](https://github.com/rustwasm/twiggy/pull/243) in Twiggy's parser. |
| 69 | + |
| 70 | +### `walrus` |
| 71 | + |
| 72 | +* @alexcrichton made [GC'ing unused functions, globals, etc an explicit |
| 73 | + pass](https://github.com/rustwasm/walrus/pull/60) in `walrus`. It was |
| 74 | + previously performed implicitly as part of serializing a wasm module. |
| 75 | +* @alexcrichton [implemented support for the reference types |
| 76 | + proposal](https://github.com/rustwasm/walrus/pull/50) and `anyref` in |
| 77 | + `walrus`. |
| 78 | +* @fitzgen [added the ability to explicitly |
| 79 | + delete](https://github.com/rustwasm/walrus/pull/58) various wasm constructs |
| 80 | + (functions, tables, etc) from a wasm module, rather than just implicitly |
| 81 | + delete them by making them unused and then running a GC. |
| 82 | + |
| 83 | +### `wasm-bindgen` |
| 84 | + |
| 85 | +* @alexcrichton added support for [`Option<MyRustStruct>` in parameters and |
| 86 | + return positions](https://github.com/rustwasm/wasm-bindgen/pull/1275). |
| 87 | +* @alexcrichton [added experimental support for using |
| 88 | + `anyref`](https://github.com/rustwasm/wasm-bindgen/pull/1002) in |
| 89 | + `wasm-bindgen`. |
| 90 | +* @fitzgen [fixed a |
| 91 | + regression](https://github.com/rustwasm/wasm-bindgen/pull/1255) where DWARF |
| 92 | + debug info custom sections were always being included in the generated Wasm, |
| 93 | + even when debug info was not enabled. |
| 94 | +* @alexcrichton [added a |
| 95 | + flag](https://github.com/rustwasm/wasm-bindgen/pull/1256) to control whether |
| 96 | + the producers custom section is included in the generated wasm binary or not. |
| 97 | +* @ctjhoa [fixed some deprecation |
| 98 | + warnings](https://github.com/rustwasm/wasm-bindgen/pull/1259) around the use |
| 99 | + of `ATOMICS_*_INIT` instead of `Atomic*::new`. |
| 100 | + |
| 101 | +### `wasm-snip` |
| 102 | + |
| 103 | +* @fitzgen ported `wasm-snip` over to [using the `walrus` |
| 104 | + crate](https://github.com/rustwasm/wasm-snip/pull/21). This also removes the |
| 105 | + need to `wasm-gc` again after running `wasm-snip`. |
| 106 | + |
| 107 | +### `web-sys` |
| 108 | + |
| 109 | +* @selaux [added a missing Web IDL |
| 110 | + attribute](https://github.com/rustwasm/wasm-bindgen/pull/1248) to |
| 111 | + `HTMLMediaElement` so that `web-sys` correctly generates bindings to the |
| 112 | + `srcObject` property. |
| 113 | + |
| 114 | +### `wee_alloc` |
| 115 | + |
| 116 | +* [**We released `wee_alloc` version 0.4.3! |
| 117 | + 🎉**](https://github.com/rustwasm/wee_alloc/blob/master/CHANGELOG.md#043) |
| 118 | + Among other things, this version will work on stable Rust as soon as 1.33 is |
| 119 | + released, which is scheduled for one week from today: 2019-02-28. |
| 120 | + |
| 121 | +## Requests for Contribution |
| 122 | + |
| 123 | +**Want to get involved in Rust and WebAssembly? [Join the Rust and WebAssembly |
| 124 | +working group!][get-involved]** |
| 125 | + |
| 126 | +* [All issues labeled "good first issue" in the `rustwasm/*` repositories](https://github.com/issues?q=is%3Aopen+is%3Aissue+user%3Arustwasm+archived%3Afalse+label%3A%22good+first+issue%22) |
| 127 | +* [All issues labeled "help wanted" in the `rustwasm/*` repositories](https://github.com/issues?q=is%3Aopen+is%3Aissue+user%3Arustwasm+archived%3Afalse+label%3A%22help+wanted%22) |
| 128 | + |
| 129 | +[get-involved]: https://github.com/rustwasm/team/blob/master/README.md#get-involved |
| 130 | + |
| 131 | +### New Good First Issues |
| 132 | + |
| 133 | +* [`wasm-bindgen`: Handling `undefined` arguments](https://github.com/rustwasm/wasm-bindgen/issues/1270) |
| 134 | +* [`wasm-bindgen`: Add doc comments from Rust to generated TypeScript |
| 135 | + definitions](https://github.com/rustwasm/wasm-bindgen/issues/1276) |
0 commit comments