MCPcopy Create free account
hub / github.com/solana-program/system / getCargo

Function getCargo

scripts/utils.mjs:73–80  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

71}
72
73export function getCargo(folder) {
74 return parseToml(
75 fs.readFileSync(
76 path.join(workingDirectory, folder ? folder : '.', 'Cargo.toml'),
77 'utf8'
78 )
79 );
80}
81
82export function getCargoMetadata(folder) {
83 const cargo = getCargo(folder);

Callers 5

getProgramsFunction · 0.90
publish-rust.mjsFile · 0.90
getAllProgramFoldersFunction · 0.85
getCargoMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…