Code reference detail
util.rs
crates/reqlan-napi/src/util.rs
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| napi_module_barrel | done | per [stack] `crates/reqlan-napi/src/lib.rs` is a barrel: it only declares modules and re-exports the napi items. Logic lives in one module per binding surface. Modules: `scan.rs` ( scanWorkspace task, createBase ), `analysis.rs` ( NativeAnalysisRuntime ), `sql_db.rs` ( NativeSqlDb ), `workspace_index.rs` ( NativeWorkspaceIndex ), `source.rs` ( parse / extract / local-symbolic source helpers ), `planner.rs` ( barrel / move / delete plan ), `util.rs` ( shared error mappers, wire-JSON helpers ). Invariants: the JS surface and generated napi `.d.ts` do not change; modules stay flat in `src/` so `rq:[...]` comment paths keep `../../../reqlan rq` depth; `rq:` doc comments move with their items; `@implementation` refs in ["../../reqlan rq"] point at the module that holds the item, not the barrel. New analysis bindings must follow ["../core_analysis/rope.rq".rope]: engine item in `reqlan-analytical`, `analysis.rs` binding, AnalysisApi facade, and cross-referenced tests. | 0.036 |
Reference labels
"../../crates/reqlan-napi/src/util.rs"