pub fn check_vulnerabilities(
pkg_name: &str,
pkg_index: &MiniPackageIndex,
version: &str,
) -> Result<bool, Error>Expand description
Scans the package metadata for known security advisories.
Returns true if the package is safe to install, or if the user
explicitly chooses to bypass a security warning.
ยงErrors
Returns an error if the version cannot be parsed or if the user confirmation fails.