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

deno_core

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

34 releases (breaking)

new 0.52.0 Aug 8, 2020
0.51.0 Jul 31, 2020
0.50.0 Jul 24, 2020
0.38.0 Mar 28, 2020
0.0.1 Sep 13, 2019

#34 in Web programming

Download history 96/week @ 2020-04-22 309/week @ 2020-04-29 371/week @ 2020-05-06 1243/week @ 2020-05-13 1021/week @ 2020-05-20 859/week @ 2020-05-27 788/week @ 2020-06-03 461/week @ 2020-06-10 646/week @ 2020-06-17 454/week @ 2020-06-24 653/week @ 2020-07-01 745/week @ 2020-07-08 926/week @ 2020-07-15 905/week @ 2020-07-22 644/week @ 2020-07-29 752/week @ 2020-08-05

3,253 downloads per month
Used in 4 crates

MIT license

190KB
5K SLoC

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

~36MB
~799K SLoC