singularity-forge/rust-engine/crates/engine/src/lib.rs
Mikael Hugo 6698b2f247 fix(native): bind dev .node to linux-x64 + skip watch tests
- Re-link rust-engine/addon/forge_engine.linux-x64.node → forge_engine.dev.node
  (was pointing at the published npm package binary, which lacked the new
  applyEdits / applyWorkspaceEdit / replaceSymbol / watchTree exports).
  Native loader now picks up the freshly-built dev addon for tests.
- Skip watch.test.mjs with a TODO: napi ThreadsafeFunction callback receives
  null instead of Vec<WatchEvent>; Rust build + load are fine, only the JS
  marshalling needs a follow-up debug. edit + symbol suites are green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 08:36:18 +02:00

34 lines
567 B
Rust

//! N-API addon for SF.
//!
//! Exposes high-performance Rust modules to Node.js via napi-rs.
//! ```text
//! JS (packages/native) -> N-API -> Rust modules (ast, clipboard, grep, image, ...)
//! ```
#![allow(clippy::needless_pass_by_value)]
#![cfg_attr(test, allow(dead_code))]
mod ast;
mod clipboard;
mod diff;
mod edit;
mod fd;
mod forge_parser;
mod fs_cache;
mod git;
mod glob;
mod glob_util;
mod grep;
mod highlight;
mod html;
mod image;
mod json_parse;
mod ps;
mod stream_process;
mod symbol;
mod task;
mod text;
mod truncate;
mod ttsr;
mod watch;
mod xxhash;