Module module

Source
Expand description

Types for loading and handling JS modules.

Macros§

module_init
Helper macro to provide module init function. Use for exporting module definitions to be loaded as part of a dynamic library.

Structs§

Declarations
A struct used for setting declarations on a module.
Declared
A marker struct used to indicate that a module is possibly not yet evaluated.
Evaluated
A marker struct used to indicate that a module was evaluated.
Exports
A struct used for setting the value of previously declared exporsts of a module.
Module
A JavaScript module.

Traits§

ModuleDef
A class which can be used to declare rust-native JavaScript modules.

Type Aliases§

ModuleLoadFn
The raw module load function (js_module_init)