Skip to main content

load_extensions

Function load_extensions 

Source
pub fn load_extensions(
    paths: &[&Path],
    checksums: &[Option<&str>],
) -> (Vec<Arc<dyn Extension>>, Vec<Error>)
Expand description

Load multiple extensions from the given paths.

Returns successfully loaded extensions and any errors encountered. Does not abort on individual failures — loads as many as possible.

checksums is parallel to paths: checksums[i] is the expected SHA-256 of paths[i]. Pass None to opt out of integrity verification for a particular extension (the same semantics as load_extension). A Some(_) mismatch is reported as an error but does not stop the other extensions from loading.