Home United States USA — software Rust 1.14 Brings Experimental WebAssembly Support and Rustup 1.0

Rust 1.14 Brings Experimental WebAssembly Support and Rustup 1.0

1360
0
SHARE

NewsHubRust 1.14 introduces WebAssembly as a new experimental target and extends the .. syntax for pattern matching, writes the Rust core team.. Additionally, rustup is now stable and is the recommended way to build Rust from sources.
WebAssembly, a low-level, portable bytecode that aims to enable execution at near-native speed by relying on common hardware capabilities that are available on many platforms, is now supported by Rust through the new wasm32-unknown-emscripten compilation target. This allows developers to compile Rust to WebAssembly by executing:
This will output a hello.js file that can be run using node. WebAssembly support is still experimental , as mentioned, and there are parts of the Rust runtime that are not available at all, such as Rust’s I/O stack.

Continue reading...