Skip to content

Commit de04935

Browse files
chore(deps): update rust crate urlpattern to 0.3 (v2) (#1607)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <[email protected]>
1 parent b4c95b2 commit de04935

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

Cargo.lock

Lines changed: 15 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/http/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tauri-plugin = { workspace = true, features = [ "build" ] }
1818
schemars = { workspace = true }
1919
serde = { workspace = true }
2020
url = { workspace = true }
21-
urlpattern = "0.2"
21+
urlpattern = "0.3"
2222
regex = "1"
2323

2424
[dependencies]
@@ -28,7 +28,7 @@ tauri = { workspace = true }
2828
thiserror = { workspace = true }
2929
tokio = { version = "1", features = ["sync", "macros"] }
3030
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.1" }
31-
urlpattern = "0.2"
31+
urlpattern = "0.3"
3232
regex = "1"
3333
http = "1"
3434
reqwest = { version = "0.12", default-features = false }

plugins/http/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ impl From<HttpScopeEntry> for scope::Entry {
5959
url: urlpattern::UrlPattern::parse(
6060
urlpattern::UrlPatternInit::parse_constructor_string::<regex::Regex>(&url, None)
6161
.unwrap(),
62+
Default::default(),
6263
)
6364
.unwrap(),
6465
}

plugins/http/src/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn parse_url_pattern(s: &str) -> Result<UrlPattern, urlpattern::quirks::Error> {
3030
{
3131
init.pathname.replace("*".to_string());
3232
}
33-
UrlPattern::parse(init)
33+
UrlPattern::parse(init, Default::default())
3434
}
3535

3636
impl<'de> Deserialize<'de> for Entry {

0 commit comments

Comments
 (0)