(context: ResolutionContext)
| 12 | const cargoWorkspaceMapCache = new WeakMap<ResolutionContext, Map<string, string>>(); |
| 13 | |
| 14 | function 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 | |
| 22 | export const rustResolver: FrameworkResolver = { |
| 23 | name: 'rust', |
no test coverage detected