Skip to content

Commit b3e5069

Browse files
chore: release v0.6.0 (#73)
## 🤖 New release * `git-url-parse`: 0.5.3 -> 0.6.0 (⚠ API breaking changes) ### ⚠ `git-url-parse` breaking changes ```text --- failure type_mismatched_generic_lifetimes: type now takes a different number of generic lifetimes --- Description: A type now takes a different number of generic lifetime parameters. Uses of this type that name the previous number of parameters will be broken. impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.43.0/src/lints/type_mismatched_generic_lifetimes.ron Failed in: Struct GitLabProvider (1 -> 0 lifetime params) in /tmp/.tmp4cEC5b/git-url-parse-rs/src/types/provider/gitlab.rs:51 Struct GenericProvider (1 -> 0 lifetime params) in /tmp/.tmp4cEC5b/git-url-parse-rs/src/types/provider/generic.rs:41 Struct GitUrl (1 -> 0 lifetime params) in /tmp/.tmp4cEC5b/git-url-parse-rs/src/types/mod.rs:48 Struct GitUrl (1 -> 0 lifetime params) in /tmp/.tmp4cEC5b/git-url-parse-rs/src/types/mod.rs:48 Struct AzureDevOpsProvider (1 -> 0 lifetime params) in /tmp/.tmp4cEC5b/git-url-parse-rs/src/types/provider/azure_devops.rs:42 ``` <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.6.0](v0.5.3...v0.6.0) - 2025-09-18 ### Added - Add interoperable support for `url::Url` ([#74](#74)) ### Other - Remove lifetime from GitUrl ([#72](#72)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b728012 commit b3e5069

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.6.0](https://github.com/tjtelan/git-url-parse-rs/compare/v0.5.3...v0.6.0) - 2025-09-18
11+
12+
### Added
13+
14+
- Add interoperable support for `url::Url` ([#74](https://github.com/tjtelan/git-url-parse-rs/pull/74))
15+
16+
### Other
17+
18+
- Remove lifetime from GitUrl ([#72](https://github.com/tjtelan/git-url-parse-rs/pull/72))
19+
1020
## [0.5.3](https://github.com/tjtelan/git-url-parse-rs/compare/v0.5.2...v0.5.3) - 2025-09-17
1121

1222
### Fixed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT"
99
name = "git-url-parse"
1010
readme = "README.md"
1111
repository = "https://github.com/tjtelan/git-url-parse-rs"
12-
version = "0.5.3"
12+
version = "0.6.0"
1313
rust-version = "1.85"
1414

1515
[features]

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Parses url used by git (e.g. `git clone <url>`)
2323
- 🏗️ Host provider info extraction
2424
- Easy to implement trait [`GitProvider`](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/trait.GitProvider.html) for custom provider parsing
2525
- Built-in support for multiple Git hosting providers
26-
* [Generic](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/struct.GenericProvider.html) (`git@host:owner/repo.git` style urls)
27-
* [GitLab](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/struct.GitLabProvider.html)
28-
* [Azure DevOps](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/struct.AzureDevOpsProvider.html)
26+
* [Generic](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/generic/struct.GenericProvider.html) (`git@host:owner/repo.git` style urls)
27+
* [GitLab](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/gitlab/struct.GitLabProvider.html)
28+
* [Azure DevOps](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/azure_devops/struct.AzureDevOpsProvider.html)
2929

3030
## Quick Example
3131

@@ -58,7 +58,7 @@ fn main() -> Result<(), git_url_parse::GitUrlParseError> {
5858
#[derive(Debug, Clone, PartialEq, Eq)]
5959
struct CustomProvider;
6060

61-
impl GitProvider<GitUrl<'_>, GitUrlParseError> for CustomProvider {
61+
impl GitProvider<GitUrl, GitUrlParseError> for CustomProvider {
6262
fn from_git_url(_url: &GitUrl) -> Result<Self, GitUrlParseError> {
6363
// Your custom provider parsing here
6464
Ok(Self)
@@ -98,7 +98,12 @@ Enable for [serde](https://docs.rs/serde/latest/) `Serialize`/`Deserialize` on [
9898
#### `url`
9999
(**enabled by default**)
100100

101-
Uses [url](https://docs.rs/url/latest/) during parsing for full url validation
101+
`GitUrl` parsing finishes with [url](https://docs.rs/url/latest/) during parsing for full url validation
102+
103+
[`GitUrl::parse_to_url`] will normalize an ssh-based url and return [`url::Url`](https://docs.rs/url/latest/url/struct.Url.html)
104+
105+
You can use `url::Url` with the built-in [`GitProvider`](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/trait.GitProvider.html) host parsers. See the `url_interop` tests for examples
106+
102107

103108
<!-- cargo-rdme end -->
104109

0 commit comments

Comments
 (0)