Crate neon[−][src]
The Neon crate provides bindings for writing Node.js plugins with a safe and fast Rust API.
Modules
borrow | Types and traits for obtaining temporary access to the internals of JavaScript values. |
context | Node execution contexts, which manage access to the JavaScript engine at various points in the Node.js runtime lifecycle. |
event | |
handle | Safe handles to managed JavaScript memory. |
meta | Utilities exposing metadata about the Neon version and build. |
object | Traits for working with JavaScript objects. |
prelude | A convenience module that re-exports the most commonly-used Neon APIs. |
reflect | |
result | Types and traits for working with JavaScript exceptions. |
types | Representations of JavaScript’s core builtin types. |
Macros
register_module | Register the current crate as a Node module, providing startup logic for initializing the module object at runtime. |
Attribute Macros
main | Marks a method as the main entrypoint for initialization in a Neon module. This attribute should only be used once in a module and will be called each time the module is initialized in a context. |