[][src]Crate deno_core

Re-exports

pub use rusty_v8 as v8;
pub use serde_json;

Modules

plugin_api

Structs

HeapLimits

Minimum and maximum bytes of heap used in an isolate

JsError

A JsError represents an exception coming from V8, with stack frames and line numbers. The deno_cli crate defines another JsError type, which wraps the one defined here, that adds source map support and colorful formatting.

JsRuntime

A single execution context of JavaScript. Corresponds roughly to the "Web Worker" concept in the DOM. A JsRuntime is a Future that can be used with an event loop (Tokio, async_std). The JsRuntime future completes when there is an error or when all pending ops have completed.

JsRuntimeState

Internal state for JsRuntime which is stored in one of v8::Isolate's embedder slots.

ModuleSource

EsModule source code that will be loaded into V8.

ModuleSpecifier

Resolved module specifier

OpState
OpTable

Collection for storing registered ops. The special 'get_op_catalog' op with OpId 0 is automatically added when the OpTable is created.

RecursiveModuleLoad

This future is used to implement parallel async module loading.

ResourceTable
RuntimeOptions
ZeroCopyBuf

A ZeroCopyBuf encapsulates a slice that's been borrowed from a JavaScript ArrayBuffer object. JavaScript objects can normally be garbage collected, but the existence of a ZeroCopyBuf inhibits this until it is dropped. It behaves much like an Arc<u8>.

Enums

ErrBox
ModuleResolutionError

Error indicating the reason resolving a module specifier failed.

Op
Snapshot

Traits

AnyError
ModuleLoader

Functions

js_check
json_op_async
json_op_sync
normalize_path

Normalize all itermediate components of the path (ie. remove "./" and "../" components). Similar to fs::canonicalize() but doesn't resolve symlinks.

v8_set_flags

Pass the command line arguments to v8. Returns a vector of command line arguments that V8 did not understand.

v8_version

Type Definitions

BufVec
GetErrorClassFn
ModuleId
ModuleLoadId
ModuleSourceFuture
OpAsyncFuture
OpFn
OpId