Stream: ComponentizeJS

Topic: cargo-component to jco compile and host in Node


view this post on Zulip Damian Reeves (Jun 03 2024 at 18:06):

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?

view this post on Zulip Notification Bot (Jun 03 2024 at 23:29):

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