Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
224 views

My website has the following JS code running the generated WASM: import init, { solve_abrams_strogatz } from './pkg/langshift.js'; async function run() { await init(); console.log("...
1 vote
1 answer
85 views

I am trying to call a Rust -> wasm function from a simple web page. Getting an error despite keeping it all simple. The function in question merely takes two string arguments and returns one string ...
0 votes
1 answer
186 views

I'm trying to build a frontend application using rust wasm and a websocket to connect to the server. Here's the desired core logic: Server (axum) needs to send a command to the app Server creates an ...
1 vote
0 answers
96 views

I am trying to request a WASM function within a JS Worker. I am stuck with it because nothing works in the way I have tried, but also I cannot see any error. Let me explain what I am doing. First, I ...
1 vote
1 answer
173 views

I am using Rust via WASM inside an Angular app. I am looking to filter the objects by key. Here is my Rust Cargo.toml and lib.rs: [package] name = "my-rust-wasm" version = "0.1.0" ...
3 votes
1 answer
91 views

I'm reading through the canvas hello world example in the wasm-bindgen docs, and I'm confused about this part of the code: #[wasm_bindgen(start)] fn start() { let document = web_sys::window()....
0 votes
1 answer
58 views

How to define usize type in a .wit file. If instead of usize, I type in u64 it works. But want to know if there is a type of max unsigned integer that matches with usize. get-size: func() -> result&...
Harry's user avatar
  • 4,290
2 votes
1 answer
93 views

I try to pass json content from js to rust with zero copy, but is seems the memory where rust vec ptr point to is not same as js arraybuffer with offset. My Env: cargo 1.83.0 wasm-pack 0.13.1 wasm-...
2 votes
0 answers
96 views

I am working on a VScode extension, which uses a combination of Typescript and WebAssembly for file parsing and data handling. The parser is written in rust and compiled to WASM, as this is faster and ...
2 votes
1 answer
320 views

I am trying to use the Fetch API using web_sys in Rust WASM code. I have defined an async function: #[wasm_bindgen] pub async fn fetch_as_vec_u8(resource_name: &str) -> Result<Vec<u8>, ...
1 vote
1 answer
1k views

I'm using Tauri v2. I'm trying to add the amazing photon_rs crate for image manipulation. When I run cargo run I can see there's a version conflict with wasm-bindgen: Updating crates.io index error: ...
0 votes
1 answer
165 views

I cannot call a function on an object in javascript of a class made by wasm-pack (0.13.0), wasm-bindgen, rust. This is the rust code: use wasm_bindgen::prelude::*; use web_sys::HtmlCanvasElement; use ...
0 votes
1 answer
143 views

I have a problem where I need to return a tuple from a wasm function as the following: #[wasm_bindgen] pub fn channel() -> (futures::channel::mpsc::Sender<i32>, futures::channel::mpsc::...
1 vote
1 answer
293 views

How do I instanciate multiple wasm modules generated using wasm-bindgen? We're using --target web, which generates a js wrapper code, which exports an "init" function using export default. ...
Nearoo's user avatar
  • 5,126
3 votes
1 answer
130 views

I've developped a library in Rust to parse RTF content. I've initially targeted x86 architectures. So I have use lots of string slices (&str) to reference to the original source without copying ...

15 30 50 per page
1
2 3 4 5
...
19

AltStyle によって変換されたページ (->オリジナル) /