#neon #node #error #collection #proxy #throw #neon-bindings

neon-utils

A collection of utilities for use with neon-bindings

2 stable releases

1.1.0 Aug 2, 2021
1.0.0 Jun 10, 2021

#13 in #throw

MIT license

28KB
687 lines

A collection of tools for working with neon-bindings to interop between node and Rust.

  • Serialize to/from special types like Duration, U256, Vec<u8> (from a hex string or ArrayBuffer), RecoverableSignature, etc.
  • More safely deal with the Throw hazard presented by the neon-bindings error model avoiding segfaults and recovered errors re-throwing
  • Threadsafe Proxy types to easily access Rust data owned by a JavaScript instance
  • run_async to schedule work on microthreads

Dependencies

~6.5MB
~72K SLoC