2 releases
0.1.1 | Jul 9, 2024 |
---|---|
0.1.0 | Jul 9, 2024 |
#78 in #light
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
~84MB
~1.5M SLoC