When I use cargo component new to build a CLI component for Rust/Wasm/Wit, the cargo component build step will automatically translate a main function to .e.g. wasi:cli/run or println! statements to the according stream functions from the wasi world. With wasm-tools component wit I can even inspect a generated with world, though none was supplied. I would llike to know more about the magic involved. Is that documented somewhere, is this something carfgo component does, or is it coming from wit-bindgen? Any help or pointers appreciated.

#rust #wasm #wit #wasi #wasip2 #cargo #componentmodel

Add Support for Wasm Component Model and WASIp2 · Issue #5121 · scala-js/scala-js

PoC design and implementation: #5121 (comment) Background This issue is kinda part of #4991 to support "server-side Wasm" To support "server-side Wasm", we have to remove all the JS dependencies. W...

GitHub