diff --git a/Cargo.toml b/Cargo.toml index e0dd5a1..ed18add 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,21 @@ [package] -authors = ["Michal Sekletar <msekleta@redhat.com>"] name = "prefixdevname" + version = "0.1.0" +edition = "2021" +license = "MIT" +authors = ["Michal Sekletar <msekleta@redhat.com>"] +repository = "https://github.com/msekletar/prefixdevname" +exclude = ["/target/*", "/.github/*"] + +keywords = [] +categories = [] +description = "Udev helper utility that provides network interface naming using user defined prefix" +readme = "README.md" + [dependencies] env_logger = "0.9.3" -lazy_static = "*" +lazy_static = "1.4.0" libc = "0.2.137" libudev = "0.3" log = "0.4.17" diff --git a/src/util.rs b/src/util.rs index 9c2de25..df85571 100644 --- a/src/util.rs +++ b/src/util.rs @@ -10,7 +10,7 @@ use std::path::PathBuf; extern crate libudev; use libudev::Device; -use sema::*; +use crate::sema::Semaphore; pub fn rename_needed(ifname: &str, prefix: &str) -> Result<bool, Box<dyn Error>> { let re: Regex = Regex::new(&format!("{}\\d+", prefix)).unwrap();