clean/update rust dependencies

This commit is contained in:
Caelan
2024-09-27 14:17:57 -06:00
parent 1e7d865f06
commit 06197f1009
4 changed files with 200 additions and 334 deletions

506
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -34,7 +34,6 @@ path = "src/testapp.rs"
velopack = { path = "../lib-rust" } velopack = { path = "../lib-rust" }
anyhow = "1.0" anyhow = "1.0"
pretty-bytes-rust = "0.3" pretty-bytes-rust = "0.3"
zip = { version = "2.1", default-features = false, features = ["deflate"] }
rand = "0.8" rand = "0.8"
log = "0.4" log = "0.4"
simplelog = "0.12" simplelog = "0.12"
@@ -44,11 +43,6 @@ chrono = "0.4"
wait-timeout = "0.2" wait-timeout = "0.2"
lazy_static = "1.5" lazy_static = "1.5"
strum = { version = "0.26", features = ["derive"] } strum = { version = "0.26", features = ["derive"] }
ureq = { version = "2.10", default-features = false, features = [
"native-tls",
"gzip",
] }
native-tls = "0.2"
file-rotate = "0.7" file-rotate = "0.7"
derivative = "2.2" derivative = "2.2"
simple-stopwatch = "0.1" simple-stopwatch = "0.1"
@@ -58,13 +52,11 @@ remove_dir_all = { git = "https://github.com/caesay/remove_dir_all.git", feature
"log", "log",
] } ] }
sha1_smol = "1.0" sha1_smol = "1.0"
url = "2.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
time = "0.3" time = "0.3"
os_info = "3.8" os_info = "3.8"
bitflags = "2.6" bitflags = "2.6"
regex = "1.10" regex = "1.10"
normpath = "1.3"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
native-dialog = "0.7" native-dialog = "0.7"
@@ -81,7 +73,7 @@ image = { version = "0.25", default-features = false, features = [
"jpeg", "jpeg",
"png", "png",
] } ] }
windows = { version = "0.57", default-features = false, features = [ windows = { version = "0.58", default-features = false, features = [
"Win32_Foundation", "Win32_Foundation",
"Win32_Security", "Win32_Security",
"Win32_System_Com", "Win32_System_Com",
@@ -107,8 +99,7 @@ windows = { version = "0.57", default-features = false, features = [
"Wdk_System", "Wdk_System",
"Wdk_System_Threading", "Wdk_System_Threading",
] } ] }
normpath = "1.2" webview2-com = "0.33"
webview2-com = "0.31"
libloading = "0.8" libloading = "0.8"
strsim = "0.11" strsim = "0.11"
same-file = "1.0" same-file = "1.0"

View File

@@ -24,13 +24,6 @@ pub fn operation_wait(wait: OperationWait) {
} }
} }
pub fn is_http_url(url: &str) -> bool {
match url::Url::parse(url) {
Ok(url) => url.scheme().eq_ignore_ascii_case("http") || url.scheme().eq_ignore_ascii_case("https"),
_ => false,
}
}
pub fn retry_io<F, T, E>(op: F) -> Result<T, E> pub fn retry_io<F, T, E>(op: F) -> Result<T, E>
where where
F: Fn() -> Result<T, E>, F: Fn() -> Result<T, E>,

View File

@@ -30,11 +30,11 @@ derivative = "2.2"
glob = "0.3" glob = "0.3"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" } serde_json = { version = "1.0" }
zip = { version = "2.1", default-features = false, features = ["deflate"] } zip = { version = "2.2", default-features = false, features = ["deflate"] }
thiserror = "1.0" thiserror = "1.0"
lazy_static = "1.5" lazy_static = "1.5"
regex = "1.10" regex = "1.10"
normpath = "1.2" normpath = "1.3"
bitflags = "2.6" bitflags = "2.6"
# typescript # typescript
@@ -44,4 +44,4 @@ ts-rs = { version = "10.0", optional = true }
zstd = { version = "0.13", optional = true } zstd = { version = "0.13", optional = true }
# async # async
async-std = { version = "1.5", optional = true } async-std = { version = "1.13", optional = true }