Skip to main content

is_system_package

Function is_system_package 

Source
pub fn is_system_package(name: &str) -> bool
Expand description

What: Identify whether a dependency belongs to a curated list of critical system packages.

Inputs:

  • name: Package name to compare against the predefined system set.

Output:

  • true when the package is considered a core system component; otherwise false.

Details:

  • Used to highlight packages whose removal or downgrade should be discouraged.
  • Checks against a curated list of critical system packages.
  • Uses exact string matching (case-sensitive).

ยงExample

use arch_toolkit::deps::is_system_package;

if is_system_package("glibc") {
    println!("glibc is a critical system package");
}