I am trying to extend a Node CLI app via WebAssemby. I have all the build pipelines setup to use cargo-component to create a WebAssembly component, and then jco transpile
to generate the relevant Javascript code.
I run into an issue where executing my Node based CLI works if I don't execute println
in my Rust code, but it freezes/hangs if I do executing println
. Is there any examples of this scenario I can follow? Or does anyone know what might be happening? Do I need to explicitly enable WASI support or something?
This topic was moved here from #cargo-component > cargo-component to jco compile and host in Node by Bailey Hayes.
Last updated: Dec 23 2024 at 12:05 UTC