WebAssembly / component-model

Repository for design and specification of the Component Model
Other
897 stars 75 forks source link

an example of a function with a return type of string #361

Open liluyue opened 1 month ago

liluyue commented 1 month ago

I am using Rust to develop a vscode plugin based on Wasm, but when the function return type is string, JavaScript always fails to receive results. May I ask if there is an example of a function with a return type of string that you can refer to

calvinrp commented 1 month ago

This question might be better suited for https://github.com/bytecodealliance/jco/ ? That project helps you run Wasm components in JavaScript host runtimes.