git-url-parse 0.4.3

A parser for git repo urls based on url crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use git_url_parse::GitUrl;

fn main() {
    println!(
        "SSH: {:#?}",
        GitUrl::parse("git@github.com:tjtelan/git-url-parse-rs.git")
    );
    println!(
        "HTTPS: {:#?}",
        GitUrl::parse("https://github.com/tjtelan/git-url-parse-rs")
    );
}