Skip to main content

workflow_node/node_sys/
mod.rs

1//! Raw bindings to the Node.js API for projects using wasm-bindgen.
2//!
3//! Vendored and internalized from the unmaintained `node-sys` v0.4.2 crate
4//! (<https://github.com/interfaces-rs/node-sys>, Apache-2.0 OR MIT). Exposed as
5//! `workflow_node::node_sys` so workflow-node no longer depends on the external
6//! crate. Lints are relaxed here since this is third-party generated binding
7//! code; the only functional change from upstream is renaming the `tty`
8//! `ReadStream`/`WriteStream` types (which collided with the `fs` ones under
9//! the same JS class name and are rejected by wasm-bindgen >= 0.2.126).
10#![allow(
11    clippy::all,
12    dead_code,
13    deprecated,
14    missing_docs,
15    unused_imports,
16    non_snake_case,
17    non_camel_case_types,
18    non_upper_case_globals,
19    rustdoc::all
20)]
21
22pub(crate) mod class;
23pub mod globals;
24pub(crate) mod interface;
25pub(crate) mod module;
26
27pub use class::{Buffer, EventEmitter, Immediate, Timeout, Wasi};
28pub use interface::*;
29pub use module::*;