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?
Can you share the component as a bug on the Jco repo further, and I'd be happy to take a look
Sure let me extract it from my project so I can give you a more isolated reproduction.
Stripped things down in this repo: DamianReeves/wasm-components-ftw (github.com)
Just realizing you mentioned to file a bug on the jco repo. Gonna go and do that.
Last updated: Nov 22 2024 at 16:03 UTC