Summary
packages/core/src/runtime/requirements.ts:
RUST_MIN_VERSION (line 4) is never imported anywhere in the repo (grep-verified — only NODE_MIN_MAJOR and CURRENT_RUST_WASM_TARGET are consumed by packages/cli)
- The
CURRENT_RUST_WASM_TARGET re-export (line 1) pulls contracts/wasm.ts (crypto, fs, errors) into the runtime entry point
Why it matters
Dead API surface plus a fat entry chunk for a constant-only module used by CLI preflight.
Suggested fix
Delete RUST_MIN_VERSION or consume it (e.g. in the CLI rust diagnostic), and move the wasm target constants to a dependency-free module.
Priority: Low | Release impact: Patch | Breaking: No
Summary
packages/core/src/runtime/requirements.ts:RUST_MIN_VERSION(line 4) is never imported anywhere in the repo (grep-verified — onlyNODE_MIN_MAJORandCURRENT_RUST_WASM_TARGETare consumed bypackages/cli)CURRENT_RUST_WASM_TARGETre-export (line 1) pullscontracts/wasm.ts(crypto, fs, errors) into the runtime entry pointWhy it matters
Dead API surface plus a fat entry chunk for a constant-only module used by CLI preflight.
Suggested fix
Delete
RUST_MIN_VERSIONor consume it (e.g. in the CLI rust diagnostic), and move the wasm target constants to a dependency-free module.Priority: Low | Release impact: Patch | Breaking: No