MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getCachedCargoWorkspaceCrateMap

Function getCachedCargoWorkspaceCrateMap

src/resolution/frameworks/rust.ts:14–20  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

12const cargoWorkspaceMapCache = new WeakMap<ResolutionContext, Map<string, string>>();
13
14function getCachedCargoWorkspaceCrateMap(context: ResolutionContext): Map<string, string> {
15 const cached = cargoWorkspaceMapCache.get(context);
16 if (cached) return cached;
17 const map = getCargoWorkspaceCrateMap(context);
18 cargoWorkspaceMapCache.set(context, map);
19 return map;
20}
21
22export const rustResolver: FrameworkResolver = {
23 name: 'rust',

Callers 1

resolveModuleFunction · 0.85

Calls 3

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected