Crates.io | rust_js_runtime |
lib.rs | rust_js_runtime |
version | 0.1.1 |
source | src |
created_at | 2024-07-09 08:37:46.353429 |
updated_at | 2024-07-09 08:48:31.23209 |
description | A light lib light you can run js in rust. |
homepage | |
repository | |
max_upload_size | |
id | 1296783 |
size | 4,609 |
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);