Skip to main content

load_guest_primary

Function load_guest_primary 

Source
pub fn load_guest_primary(
    bin_path: &Path,
) -> Result<Option<GuestPrimarySessionV1>>
Expand description

Load guest-primary metadata: workspace env path, then cwd .cargo-devshell/session.json, then legacy beside bin_path.

Returns Ok(None) if no file exists or format is unrecognized.

ยงErrors

I/O errors, or invalid JSON (wrapped as InvalidData).