MCPcopy
hub / github.com/Swatinem/rust-cache / parseRustVersion

Function parseRustVersion

src/config.ts:413–420  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

411}
412
413function parseRustVersion(stdout: string): RustVersion {
414 const splits = stdout
415 .split(/[\n\r]+/)
416 .filter(Boolean)
417 .map((s) => s.split(":").map((s) => s.trim()))
418 .filter((s) => s.length === 2);
419 return Object.fromEntries(splits);
420}
421
422async function globFiles(pattern: string): Promise<string[]> {
423 const globber = await glob.create(pattern, {

Callers 1

getRustVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected