Crate rquickjs_core

source ·
Expand description

§High-level bindings to QuickJS

The rquickjs crate provides safe high-level bindings to the QuickJS JavaScript engine. This crate is heavily inspired by the rlua crate.

Re-exports§

Modules§

  • allocatorallocator
    Tools for using different allocators with QuickJS.
  • JavaScript array types.
  • QuickJS atom functionality.
  • JavaScript classes defined from Rust.
  • JS Contexts related types.
  • Utilities for converting to and from JavaScript values.
  • JavaScript function functionality
  • loaderloader
    Loaders and resolvers for loading JS modules.
  • Utility types and traits.
  • Types for loading and handling JS modules.
  • Module for types dealing with JS objects.
  • A group of often used types.
  • Javascript promises and future integration.
  • Native low-level bindings
  • QuickJS runtime related types.

Macros§

  • async_withfutures
    A macro for safely using an asynchronous context while capturing the environment.
  • Short macro to define a cstring literal.
  • Helper macro to provide module init function. Use for exporting module definitions to be loaded as part of a dynamic library.
  • A macro for implementing StaticJsFunction for generic functions.

Structs§

  • Rust representation of a JavaScript object optimized as an array.
  • ArrayBufferarray-buffer
    Rust representation of a JavaScript object of class ArrayBuffer.
  • A QuickJS Atom.
  • Rust representation of a JavaScript big int.
  • The wrapper for values to force coercion
  • A JavaScript instance of Error
  • The property filter
  • A JavaScript function.
  • A JavaScript module.
  • The placeholder which treated as null value
  • Rust representation of a JavaScript object.
  • The wrapper for JS values to keep it from GC
  • A JavaScript promise.
  • Rust representation of a JavaScript string.
  • Rust representation of a JavaScript symbol.
  • TypedArrayarray-buffer
    Rust representation of a JavaScript objects of TypedArray classes.
  • The placeholder which treated as undefined value
  • Any JavaScript value

Enums§

  • An error type containing possible thrown exception values.
  • Error type of the library.
  • The type of JavaScript value

Traits§

Type Aliases§

  • Result type containing an the JavaScript exception if there was one.
  • Result type used throughout the library.