DEV Community

Discussion on: Let's Build a Rust Frontend with Yew - Part 3

Collapse
 
pkubik profile image
Paweł Kubik

Did you came up with a way to add some rust dependencies to WASM project? I've tried to add fake to produce some fake data for testing but I was flooded with linker error to C functions.

Seems obvious that I can't mix native binaries with WASM but is there a way to compile the dependencies with cargo-web too? Or maybe some alternative registry with packages made for WASM, like stdweb?

Collapse
 
muqito_9 profile image
Christoffer Lans

The link issue I think you're referring to is when you try to recompile whilest the code is running. Are you by any chance running a different tab in say Clion or something?