Skip to content

Commit

Permalink
chore(deps): update rust crate urlpattern to 0.3 (v2) (tauri-apps#1607)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <[email protected]>
  • Loading branch information
2 people authored and Sir-Thom committed Oct 22, 2024
1 parent b8ed4b4 commit e3a7608
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
18 changes: 15 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugins/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tauri-plugin = { workspace = true, features = [ "build" ] }
schemars = { workspace = true }
serde = { workspace = true }
url = { workspace = true }
urlpattern = "0.2"
urlpattern = "0.3"
regex = "1"

[dependencies]
Expand All @@ -28,7 +28,7 @@ tauri = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1", features = ["sync", "macros"] }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.1" }
urlpattern = "0.2"
urlpattern = "0.3"
regex = "1"
http = "1"
reqwest = { version = "0.12", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions plugins/http/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl From<HttpScopeEntry> for scope::Entry {
url: urlpattern::UrlPattern::parse(
urlpattern::UrlPatternInit::parse_constructor_string::<regex::Regex>(&url, None)
.unwrap(),
Default::default(),
)
.unwrap(),
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/http/src/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn parse_url_pattern(s: &str) -> Result<UrlPattern, urlpattern::quirks::Error> {
{
init.pathname.replace("*".to_string());
}
UrlPattern::parse(init)
UrlPattern::parse(init, Default::default())
}

impl<'de> Deserialize<'de> for Entry {
Expand Down

0 comments on commit e3a7608

Please sign in to comment.