Rust modules support for Wilton JavaScript runtime
Usage example:
/ configure Cargo to build a shared library
lib]
rate-type =
/ in lib.rs, import serde and wilton_rust
xtern crate serde_derive;
xtern crate wilton_rust;
...
/ declare input/output structs
truct MyIn
truct MyOut
...
/ write a function that does some work
n hello
...
/ register that function inside the `wilton_module_init` function,
/ that will be called by Wilton during the Rust module load
ub extern "C"
See an example how to load and use Rust library from JavaScript.