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 <fabianlars@fabianlars.de>
This commit is contained in:
renovate[bot]
2024-09-02 15:37:44 +02:00
committed by GitHub
parent b4c95b25df
commit de04935b2f
4 changed files with 19 additions and 6 deletions
Generated
+15 -3
View File
@@ -6422,7 +6422,7 @@ dependencies = [
"tokio",
"tray-icon",
"url",
"urlpattern",
"urlpattern 0.2.0",
"uuid",
"webkit2gtk",
"webview2-com",
@@ -6710,7 +6710,7 @@ dependencies = [
"thiserror",
"tokio",
"url",
"urlpattern",
"urlpattern 0.3.0",
]
[[package]]
@@ -7067,7 +7067,7 @@ dependencies = [
"thiserror",
"toml 0.8.2",
"url",
"urlpattern",
"urlpattern 0.2.0",
"walkdir",
]
@@ -7726,6 +7726,18 @@ dependencies = [
"url",
]
[[package]]
name = "urlpattern"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d"
dependencies = [
"regex",
"serde",
"unic-ucd-ident",
"url",
]
[[package]]
name = "utf-8"
version = "0.7.6"
+2 -2
View File
@@ -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]
@@ -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 }
+1
View File
@@ -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(),
}
+1 -1
View File
@@ -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 {