You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 🤖 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>
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ Parses url used by git (e.g. `git clone <url>`)
23
23
- 🏗️ Host provider info extraction
24
24
- Easy to implement trait [`GitProvider`](https://docs.rs/git-url-parse/latest/git_url_parse/types/provider/trait.GitProvider.html) for custom provider parsing
25
25
- Built-in support for multiple Git hosting providers
@@ -98,7 +98,12 @@ Enable for [serde](https://docs.rs/serde/latest/) `Serialize`/`Deserialize` on [
98
98
#### `url`
99
99
(**enabled by default**)
100
100
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
0 commit comments