I am beginner for Rust and Webassembly , I follow the hello,world! to do
$ wasm-pack build
λ wasm-pack build
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
warning: function is never used: `set_panic_hook`
--> src\utils.rs:1:8
|
1 | pub fn set_panic_hook() {
| ^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: 1 warning emitted
Finished release [optimized] target(s) in 0.10s
Error: failed to download from https://github.com/WebAssembly/binaryen/releases/download/version_90/binaryen-version_90-x86-windows.tar.gz
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
My Internet is so bad that I want manually install binaryen-version_90-x86-windows.tar.gz
OS: Window10
Now I have binaryen-version_90-x86-windows.tar.gz
asm2wasm.exe
binaryen.dll
wasm-as.exe
wasm-ctor-eval.exe
wasm-dis.exe
wasm-emscripten-finalize.exe
wasm-metadce.exe
wasm-opt.exe
wasm-reduce.exe
wasm-shell.exe
wasm2js.exe
Where should I put in this file ?
.appveyor.yml
.cargo-ok
.git
.gitignore
.travis.yml
Cargo.lock
Cargo.toml
LICENSE_APACHE
LICENSE_MIT
README.md
pkg
src
target
tests