ledcat 0.2.0

Control lots of LED's over lots of protocols
macro_rules! regex_validator {
    ($expression:expr) => {{
        use regex::Regex;
        let ex = Regex::new($expression).unwrap();
        move |val: String| {
            if ex.is_match(val.as_str()) {
                Ok(())
            } else {
                Err(format!("\"{}\" does not match {}", val, ex))
            }
        }
    }};
}

macro_rules! io_err {
    ($expr:expr) => {
        $expr.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
    };
}