docs.rs failed to build node_api-0.4.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
node_api-0.5.0
node_api
This crate provides bindings to the Node-API C API, making it easy to write Node native addons in Rust.
Example
Write your native addon in Rust:
!;
init
Then load it in Node.js.
let native = require;
;
See the examples folder for a complete example.
Serde integration
To make it easy to move data structures between Rust and Node.js, the node_api crate supports integration with serde.
let contact = native.;
console.log;
console.log;