Rust Node capability for Tsonic. It owns exact node:* provider declarations,
Rust operation rows, installed-runtime contributions, and the
tsonic_rust_node crate.
Canonical product documentation:
Install this capability next to the Rust target in the application package:
npm install --save-dev @tsonic/rust-nodejs@^0.1.0Authored source then imports standard modules such as node:fs. Selecting the
JavaScript source surface is a separate choice and is not required for Node
module imports.
npm install
npm run build
npm testThe gate covers provider contracts and the runtime Cargo workspace. Generated projects bind the canonical runtime crates through explicit installed paths; physical npm sibling layout is not semantic input.
Generated binaries initialize the performance clock before authored module
initializers. Native Rust embedders must call
tsonic_rust_node::perf_hooks::initialize_clock() before using this clock or
calling an emitted library that uses it. Initialization is idempotent; it never
changes the origin of a running clock.