mirror of
https://github.com/safishamsi/graphify.git
synced 2026-10-18 01:49:22 +00:00
Rust's standard-library types were absent from _LANGUAGE_BUILTIN_GLOBALS, so every Option/Vec/String/Result annotation was extracted as a domain type and resolved to a few canonical nodes with corpus-wide degree (String led a 1,200-file workspace with ~1,700 edges). Add a Rust-only _RUST_BUILTIN_TYPES set, kept separate so the same names still resolve as user types in other languages, and skip those names in the Rust type-reference and call collectors. The filter is definition-aware: a file that defines its own `struct Result<T>` keeps its references. A tuple-struct construction (`ClientId(id)`) targets a data definition, not a callable, so it is now emitted as `references[constructor]` instead of `calls` in both the in-file and cross-file paths; a real function call still emits `calls`.