Skip to main content


If someone from the #rust bubble can tell me how to compile a crate to wasm and then include that bytes in another crate in my workspace, that'd be nice!
#rust
Thinking about naughty things like calling `cargo` with appropriate parameters to build the webassembly artifact from within `build.rs`…
Although it's a pretty awful workaround, it's the only mechanism I'm aware of that would achieve what you want. If there is a cleaner approach, I'd be interested in knowing as well.
@silwol
Yeah that seems to be the preferred way as of now