pub fn get_packages() -> Vec<Package>
Expand description

Gets the currently installed packages from the .crates2.json file.

Examples

use cargo_backup::get_packages;

let packages = get_packages();

Panics

  • If the .crates2.json file is not valid JSON.
  • If the .crates2.json file cannot be read.