|new 0.104.0||Oct 18, 2021|
|0.102.0||Oct 4, 2021|
|0.95.0||Jul 26, 2021|
|0.82.0||Mar 21, 2021|
|0.0.1||Sep 13, 2019|
#31 in Web programming
11,907 downloads per month
Used in 43 crates (39 directly)
The main dependency of this crate is rusty_v8, which provides the V8-Rust bindings.
The JsRuntime implements an event loop abstraction for the executed code that
keeps track of all pending tasks (async ops, dynamic module loads). It is user's
responsibility to drive that loop by using
JsRuntime::run_event_loop method -
it must be executed in the context of Rust's future executor (eg. tokio, smol).
Deno.core.opAsync() functions to trigger the "op_fn" callback in
JsRuntime::register_op on Rust side. A conventional way to handle "op_fn"
callbacks is to use the
TypeScript support and lots of other functionality are not available at this layer. See the CLI for that.