Skip to content

Commit 53b64c2

Browse files
committed
Bumping version number for crates.io
Moving main.rs to example/multi.rs Minor README.md update
1 parent a060408 commit 53b64c2

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ strum = "0.17"
2121
strum_macros = "0.17"
2222
anyhow = "1.0"
2323
regex = "1.3"
24-
env_logger = "0.7"
2524

2625
[dev-dependencies]
2726
env_logger = "0.7"

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,23 @@ Supports parsing SSH/HTTPS repo urls for:
1414
* Bitbucket
1515
* Azure Devops
1616

17-
See `tests/parse.rs` for expected output for a variety of inputs.
17+
See [tests/parse.rs](tests/parse.rs) for expected output for a variety of inputs.
1818

1919
---
2020

2121
URLs that use the `ssh://` protocol (implicitly or explicitly) undergo a small normalization process in order to be parsed.
2222

2323
Internally uses `Url::parse()` from the [Url](https://crates.io/crates/url) crate after normalization.
2424

25-
## Example usage
25+
## Examples
26+
27+
### Run example with debug output
28+
29+
```shell
30+
$ RUST_LOG=git_url_parse cargo run --example multi
31+
```
32+
33+
### Simple usage and output
2634
```rust
2735
use git_url_parse::GitUrl;
2836

@@ -32,7 +40,7 @@ fn main() {
3240
}
3341
```
3442

35-
## Example Output
43+
### Example Output
3644
```bash
3745
SSH: Ok(GitUrl { href: "[email protected]:tjtelan/git-url-parse-rs.git", host: Some("github.com"), name: "git-url-parse-rs", owner: Some("tjtelan"), organization: None, fullname: "tjtelan/git-url-parse-rs", protocol: Ssh, user: Some("git"), token: None, port: None, path: "tjtelan/git-url-parse-rs.git", git_suffix: true })
3846
HTTPS: Ok(GitUrl { href: "https://github.com/tjtelan/git-url-parse-rs", host: Some("github.com"), name: "git-url-parse-rs", owner: Some("tjtelan"), organization: None, fullname: "tjtelan/git-url-parse-rs", protocol: Https, user: None, token: None, port: None, path: "/tjtelan/git-url-parse-rs", git_suffix: false })
File renamed without changes.

0 commit comments

Comments
 (0)