deps: update dependencies

This commit is contained in:
liushuyu 2022-03-28 17:02:46 -06:00
parent 679312f101
commit 0cfa44330d
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
3 changed files with 573 additions and 322 deletions

882
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -7,6 +7,7 @@ repository = "https://github.com/j-selby/liftinstall.git"
documentation = "https://liftinstall.jselby.net" documentation = "https://liftinstall.jselby.net"
description = "An adaptable installer for your application." description = "An adaptable installer for your application."
build = "build.rs" build = "build.rs"
resolver = "2"
[dependencies] [dependencies]
anyhow = "^1" anyhow = "^1"
@ -31,7 +32,7 @@ semver = {version = "1.0", features = ["serde"]}
regex = "1.4" regex = "1.4"
dirs = "^4" dirs = "^4"
zip = "0.5" zip = "0.6"
xz2 = "0.1" xz2 = "0.1"
tar = "0.4" tar = "0.4"
@ -42,7 +43,7 @@ chrono = "0.4"
clap = "2.33" clap = "2.33"
# used to open a link to the users default browser # used to open a link to the users default browser
webbrowser = "0.5" webbrowser = "0.6"
# used in JWT based package authentication # used in JWT based package authentication
jsonwebtoken = "7" jsonwebtoken = "7"
# used to decode the public key for verifying JWT tokens # used to decode the public key for verifying JWT tokens
@ -57,12 +58,12 @@ which = "4.0"
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["psapi", "winbase", "winioctl", "winnt"] } winapi = { version = "0.3", features = ["psapi", "winbase", "winioctl", "winnt"] }
widestring = "0.4" widestring = "0.5"
webview2 = "0.1" webview2 = "0.1"
tempfile = "3" tempfile = "3"
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
sysinfo = "0.20" sysinfo = "0.23"
slug = "0.1" slug = "0.1"
[target.'cfg(windows)'.build-dependencies] [target.'cfg(windows)'.build-dependencies]

View file

@ -337,7 +337,7 @@ mod natives {
use crate::logging::LoggingErrors; use crate::logging::LoggingErrors;
use sysinfo::{ProcessExt, SystemExt}; use sysinfo::{ProcessExt, SystemExt, PidExt};
use dirs; use dirs;
@ -444,7 +444,7 @@ mod natives {
system.refresh_all(); system.refresh_all();
for (pid, procs) in system.processes() { for (pid, procs) in system.processes() {
processes.push(super::Process { processes.push(super::Process {
pid: *pid as usize, pid: pid.as_u32() as usize,
name: procs.name().to_string(), name: procs.name().to_string(),
}); });
} }