rust_js_runtime

Crates.iorust_js_runtime
lib.rsrust_js_runtime
version0.1.1
sourcesrc
created_at2024-07-09 08:37:46.353429
updated_at2024-07-09 08:48:31.23209
descriptionA light lib light you can run js in rust.
homepage
repository
max_upload_size
id1296783
size4,609
Anran (AnranS)

documentation

README

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);
Commit count: 0

cargo fmt