#run #js #light #lib

rust_js_runtime

A light lib light you can run js in rust

2 releases

0.1.1 Jul 9, 2024
0.1.0 Jul 9, 2024

#94 in #light

MIT license

5KB
79 lines

A light lib light you can run js in rust.

how to usage

lazy_static! {
    pub static ref JS_EXECUTOR: Arc<JsExecutor> = JsExecutor::new(32);
}
let res: Result<serde_json::Value, Error> = JS_EXECUTOR.execute("1+1").await;
println!("===> res: {:?}", res);

Dependencies

~85MB
~1.5M SLoC