News for hackers. Stuff that matters.
Re:Perspective: Streaming pivot visualization via WebAssembly by Game_Ender on Tuesday February 06, 2018 @02:00PM (#16318536)
cargo-web uses emscripten under the hood.
Re:Perspective: Streaming pivot visualization via WebAssembly by a_humean on Tuesday February 06, 2018 @02:33PM (#16318826)
No, he is right. cargo-web supports three backends, of which only two include emscripten and the third using a native rust backend. https://github.com/koute/cargo-web#features

Rust can be compiled to wasm without emscripten using wasm32-unknown-unknown.

Re:Perspective: Streaming pivot visualization via WebAssembly by bringtheaction on Tuesday February 06, 2018 @05:45PM (#16320648)
Does that mean I can install cargo-web without emscripten or do I still need it even though I am not going to use it just because the two other targets use it? In other words, is emscripten an optional or a hard dependency?
Re:Perspective: Streaming pivot visualization via WebAssembly by a_humean on Wednesday February 07, 2018 @08:13AM (#16324128)
Its an optional dependency. You can build without it by just using a nightly version of rust with the wasm32-unknown-unknown backend.

An example of using cargo-web with the stdweb rust project: https://github.com/koute/stdweb#running-the-examples