October 2019
Intermediate to advanced
444 pages
10h 37m
English
For this project, we are setting up a directory called browser-rust, containing a web directory and a cargo library project called rust-digest (cargo new rust-digest --lib). For the compilation, we need an additional compilation target, wasm23-unknown-unknown, which can be installed via rustup. Issue the following command in a Terminal to install the target:
$ rustup target add wasm32-unknown-unknowninfo: downloading component 'rust-std' for 'wasm32-unknown-unknown' 10.9 MiB / 10.9 MiB (100 %) 5.3 MiB/s in 2s ETA: 0sinfo: installing component 'rust-std' for 'wasm32-unknown-unknown'
Use cargo to install a tool called wasm-bindgen-cli (cargo install wasm-bindgen-cli), and check whether it works by invoking wasm-bindgen in your ...
Read now
Unlock full access