ferrosaur
ferrosaur derives statically-typed Rust code — à la wasm-bindgen — for
deno_core::JsRuntime to interface with your JavaScript code.
You have:
// lib.js
export const a + b;
You write:
// lib.rs
;
You get:
// let rt: &mut JsRuntime;
let module = main_module_init.await?;
let result = module.add?;
[!TIP]
This is like the inverse of
deno_core::op2:
#[op2]gives JavaScript programs easy access to your Rust implementation.- ferrosaur gives your Rust program easy access to JavaScript implementations.
License
This project is released under the Apache 2.0 License and the MIT License.