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.
  • classclasses
    JS Class related functionality.
  • JS Contexts related types.
  • Utilites for converting to and from javascript values.
  • JS functions and rust callbacks.
  • 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.
  • promisefutures
    Utilities for converting promises to futures and vice versa.
  • Native low-level bindings
  • Quickjs runtime related types.

Macros

  • async_withfutures
    A macro for safely using an asynchronous context while capturing the environment.
  • class_defclasses
    The macro to simplify class definition.
  • 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.

Structs

  • Rust representation of a javascript object optimized as an array.
  • ArrayBufferarray-buffer
    Rust representation of a javascript object of class ArrayBuffer.
  • An atom is value representing the name of a variable of an objects and can be created from any javascript value.
  • Rust representation of a javascript big int.
  • ClassIdclasses
    The type of identifier of class
  • A javascript instance of Error
  • Rust representation of 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
  • 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 Definitions

  • Result type containing an the javascript exception if there was one.
  • Result type used throught the library.