Uses new Rust 2021
|new 0.162.0||Dec 1, 2022|
|0.161.0||Nov 24, 2022|
|0.160.0||Nov 16, 2022|
|0.145.0||Jul 28, 2022|
|0.0.1||Sep 13, 2019|
#470 in Web programming
18,436 downloads per month
Used in 75 crates (63 directly)
Deno Core Crate
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("op_name", ...) functions
to trigger the op function callback. A conventional way to write ops is using
TypeScript support and lots of other functionality are not available at this layer. See the CLI for that.