Crate rquickjs_extension

Source
Expand description

An extension system for rquickjs

This is a complement to rquickjs to allow the ecosystem to create more unified Rust extensions.

The goal was to create a more generic version of ModuleDef that would allow it to have options and/or set global values.

Macros§

globals_only

Structs§

ExtensionBuilder
Builder to create a ModuleLoader, ModuleResolver and GlobalInitializer
GlobalInitializer
Global initializer that MUST be called before any user code is run.
GlobalsOnly
Implementation type when you only need to define globals
ModuleImpl
Implementation type when you need to define a module and optionally globals.
ModuleLoader
Rquickjs Loader for modules defined using Extension.
ModuleResolver
Rquickjs Resolver for modules defined using Extension.

Traits§

Extension
A trait for defining an extension with options.