|new 0.95.0||Jul 26, 2021|
|0.93.0||Jul 12, 2021|
|0.82.0||Mar 21, 2021|
|0.75.0||Dec 30, 2020|
|0.0.1||Sep 13, 2019|
#64 in Web programming
7,897 downloads per month
Used in 37 crates (35 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.