#core #tokio #v8 #javascript #runtime #typescript #rusty-v8

deno_core

A secure JavaScript/TypeScript runtime built with V8, Rust, and Tokio

24 releases (breaking)

✓ Uses Rust 2018 edition

new 0.46.0 May 29, 2020
0.44.0 May 12, 2020
0.38.0 Mar 28, 2020
0.0.1 Sep 13, 2019
Download history 45/week @ 2020-02-09 113/week @ 2020-02-16 121/week @ 2020-02-23 64/week @ 2020-03-01 112/week @ 2020-03-08 77/week @ 2020-03-15 198/week @ 2020-03-22 162/week @ 2020-03-29 104/week @ 2020-04-05 217/week @ 2020-04-12 82/week @ 2020-04-19 204/week @ 2020-04-26 382/week @ 2020-05-03 705/week @ 2020-05-10 1317/week @ 2020-05-17 864/week @ 2020-05-24

1,454 downloads per month
Used in 2 crates

MIT license

185KB
5K SLoC

Ruby HTML 4.5K SLoC // 0.1% comments Java 253 SLoC // 0.1% comments

Deno Core Crate

crates docs

The main dependency of this crate is rusty_v8, which provides the V8-Rust bindings.

This Rust crate contains the essential V8 bindings for Deno's command-line interface (Deno CLI). The main abstraction here is the Isolate which provides a way to execute JavaScript. The Isolate is modeled as a Future<Item=(), Error=JSError> which completes once all of its ops have completed.

In order to bind Rust functions into JavaScript, use the Deno.core.dispatch() function to trigger the "dispatch" callback in Rust. The user is responsible for encoding both the request and response into a Uint8Array.

Documentation for this crate is thin at the moment. Please see http_bench.rs as a simple example of usage.

TypeScript support and a lot of other functionality is not available at this layer. See the CLI for that.

Dependencies

~35MB
~746K SLoC