pub fn get_provided_packages<S: BuildHasher + Default>(
_installed: &HashSet<String, S>,
) -> HashSet<String>Expand description
What: Build an empty provides set (for API compatibility).
Inputs:
installed: Set of installed package names (unused, kept for API compatibility).
Output:
- Returns an empty set (provides are now checked lazily).
Details:
- This function is kept for API compatibility but no longer builds the full provides set.
- Provides are now checked on-demand using
is_package_installed_or_provided()for better performance. - This avoids querying all installed packages upfront, which was very slow.
ยงExample
use arch_toolkit::deps::{get_installed_packages, get_provided_packages};
let installed = get_installed_packages().unwrap();
let provided = get_provided_packages(&installed);
assert!(provided.is_empty()); // Always returns empty set