Skip to main content

discover_platform_tools_stdlib_roots

Function discover_platform_tools_stdlib_roots 

Source
pub fn discover_platform_tools_stdlib_roots() -> Vec<PathBuf>
Expand description

Locate every platform-tools/rust/lib/rustlib/src/rust/library/ tree under ~/.cache/solana/ and return them newest-version-first. Empty vec if the solana toolchain isn’t installed via agave-install.

Callers pair these with CI_PLATFORM_TOOLS_PREFIX so stdlib frames emitted against the CI build path resolve to the local source tree.