wasm-pack Questions

3

I know that wasm doesn't have blocking so how would I do the equivalent. Or is there a different tool to use? I'm new to this so it could also be that my approach is completely off. I'm using wasm-...
Fulton asked 7/6, 2023 at 2:46

1

Solved

everybody. let rt = tokio::runtime::Runtime::new().unwrap(); This code doesn't work when I try to build wasm. let rt = tokio::runtime::Runtime::new().unwrap(); | ^^^^^^^ could not find `Runtime` ...
Kondon asked 1/11, 2023 at 10:45

1

I have a rust + wasm project like this: wasm-pack-example/ pkg/ .gitignore package.json wasm_pack_example.d.ts wasm_pack_example.js wasm_pack_example_bg.d.ts wasm_pack_example_bg.js wasm_pa...
Flapdoodle asked 13/1, 2021 at 22:49

3

Solved

I have some rust code that compiles to web assembly using wasm-pack and wasm-bindgen. I want to call into this code from a web worklet/worker. The entire app should eventually be just one single *....
Andraandrade asked 20/12, 2021 at 10:13

2

Solved

I followed the Hello World Guide for wasm-bindgen (I am using wasm-bindgen = "0.2.72"). Unfortunately the npm packages mentioned in the guide are not really up to date. Because I would li...
Ludly asked 21/3, 2021 at 16:5

1

I would like to use a Web-Assembly Module that I wrote in Rust in my Astro App. I am using TypeScript and the following astro.config.mjs: import { defineConfig } from "astro/config"; impo...
Neurophysiology asked 20/11, 2022 at 14:55

1

Solved

I wrote some Rust code and compiled it with wasm-pack. I notice these free() methods in the generated .d.ts files: export class PdfDoc { free(): void; ... } PdfDoc owns a massive amount of memor...
Sateen asked 8/9, 2022 at 23:18

2

Solved

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: <script type="modul...

2

Solved

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: `C:\User...
Broeder asked 4/8, 2021 at 6:56

1

Solved

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 stat...
Essential asked 23/10, 2020 at 21:51

1

Some examples of building wasm use cargo build (like the examples in the book Programming WebAssembly) cargo build --release --target=wasm32-unknown-unknown And others use, wasm-pack build --targe...
Goshawk asked 25/6, 2020 at 23:35

1

I'm trying to compile this example code from rust to wasm. It's a rust crate that lets you create/write excel files. I've successfully managed to run it using cargo run. Unfortunately, when I try...
Clearway asked 3/6, 2020 at 20:22

1

Solved

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 differe...
Reiser asked 6/1, 2020 at 8:43
1

© 2022 - 2025 — McMap. All rights reserved.