second-state / rustwasmc

Tool for building Rust functions for Node.js. Combine the performance of Rust, safety and portability of WebAssembly, and ease of use of JavaScript.
https://www.secondstate.io/articles/rustwasmc/
Apache License 2.0
130 stars 10 forks source link

Throw an error when the Rust function input or return value types are wrong #1

Open juntao opened 4 years ago

juntao commented 4 years ago

Currently the Rust could return nothing and it fails at runtime.

Please sure that only compliant Rust functions can be compiled into wasm files.