Questions tagged [wasm-pack]

GitHub: https://github.com/rustwasm/wasm-pack

75 questions
15
votes
2 answers

can't install cargo wasm-pack

When i run cargo install wasm-pack on windows 10 64-bit i get this error: error: failed to run custom build command for `openssl-sys v0.9.65` Caused by: process didn't exit successfully:…
VilgotanL
  • 328
  • 2
  • 9
14
votes
1 answer

Why does wasm-opt fail in wasm-pack builds when generating a function returning a string?

I'm working through the Rust WASM tutorial for Conway's game of life. One of the simplest functions in the file is called Universe.render (it's the one for rendering a string representing game state). It's causing an error when I run wasm-pack…
vaer-k
  • 10,923
  • 11
  • 42
  • 59
14
votes
1 answer

WASI vs Web-Assembly

I came across the web-assembly wasm, even I tried some of the code using web-assembly, Recently I read about wasi and I notice Ethereum Ewasm, Cosmos coswasm in the blockchain. What is main difference between them? When is WASI the right solution…
nagaraj
  • 797
  • 1
  • 6
  • 29
12
votes
2 answers

Loading module was blocked because of a disallowed MIME type (“application/wasm”)

I serve a static file server (through HTTP), which contains data generated by wasm-pack. Using the examples from the rustwasm book, I added this code to my index HTML page: