git-semver-tags 0.0.12

Get all git semver tags of your repository in reverse chronological order
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
macro_rules! format_regex {
    ($($arg:tt)*) => {{
        std::format!($($arg)*).parse::<regex::Regex>().expect("regex new ok!")
    }}
}

#[cfg(test)]
mod tests {

    #[test]
    fn test_format_regex() {
        assert_eq!(
            format_regex!(r"^{}(.*)", "v").to_string(),
            regex::Regex::new(r"^v(.*)").unwrap().to_string()
        )
    }
}