Skip to main content

load

Function load 

Source
pub fn load(dirs: &[PathBuf], enabled: &[String]) -> Plugins
Expand description

Discover and load plugins from dirs, in order: the first plugin with a given name wins (so a profile’s copy shadows the shared one). Only names in enabled are considered, except a manifest that declares nothing but provider profiles (see [declares_only_profiles]). A missing manifest, a manifest that does not parse, a name that does not match its directory, or a newer api becomes a problem entry, never an error.