Skip to main content

load_with_fs

Function load_with_fs 

Source
pub fn load_with_fs(
    path: &Path,
    options: &LoadOptions,
    fs: Box<dyn FileSystem>,
) -> Result<Ledger, ProcessError>
Expand description

Like load, but with a caller-provided FileSystem.

Lets the WASI component inject a filesystem whose decrypt delegates to a host capability, so GPG-encrypted ledgers load in the sandbox (a WASI guest can neither spawn gpg nor reach the keyring) — #1667.

§Errors

Returns a ProcessError if loading or processing fails.