diff --git a/src/depcheck.rs b/src/depcheck.rs index 6a137a4..e8da974 100644 --- a/src/depcheck.rs +++ b/src/depcheck.rs @@ -6,6 +6,7 @@ pub enum DepType { SharedObject, Executable, Include, + UdevRule, } #[derive(Debug, Clone, PartialEq, Eq)] @@ -38,6 +39,7 @@ impl Dependency { .map(str::to_string) .collect(), DepType::Include => include_paths(), + DepType::UdevRule => udev_rules_paths(), } { let path_s = &format!("{dir}/{fname}", dir = dir, fname = self.filename); let path = Path::new(&path_s); @@ -121,6 +123,10 @@ fn include_paths() -> Vec { ] } +fn udev_rules_paths() -> Vec { + vec!["/usr/lib/udev/rules.d".into()] +} + #[cfg(test)] mod tests { use super::{DepType, Dependency};