- 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>
34 lines
567 B
Rust
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;
|