Skip to main content

load_installed_packs

Function load_installed_packs 

Source
pub fn load_installed_packs(project_dir: &Path) -> Result<Vec<InstalledPack>>
Expand description

Load all installed battery packs with their specs and active features.

Reads [build-dependencies] from the user’s Cargo.toml, fetches each battery pack’s spec via cargo metadata, and reads active features from package.metadata.battery-pack.