deps: update dependencies

This commit is contained in:
liushuyu 2020-03-09 00:24:29 -06:00 committed by James
parent d2399d97e4
commit 7acefbc8cb
6 changed files with 435 additions and 426 deletions

843
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ description = "An adaptable installer for your application."
build = "build.rs"
[dependencies]
web-view = {git = "https://github.com/j-selby/web-view.git", rev = "752106e4637356cbdb39a0bf1113ea3ae8a14243"}
web-view = "0.6"
hyper = "0.11.27"
futures = "0.1.29"
@ -39,7 +39,7 @@ chrono = "0.4"
clap = "2.33"
[build-dependencies]
walkdir = "2.2"
walkdir = "2.3"
serde = "1.0"
serde_derive = "1.0"
toml = "0.5"
@ -50,7 +50,7 @@ winapi = { version = "0.3", features = ["psapi", "winbase", "winioctl", "winnt"]
widestring = "0.4.0"
[target.'cfg(not(windows))'.dependencies]
sysinfo = "0.9"
sysinfo = "0.11"
slug = "0.1"
[target.'cfg(windows)'.build-dependencies]

View file

@ -7,7 +7,7 @@ use reqwest::header::CONTENT_LENGTH;
use std::io::Read;
use std::time::Duration;
use reqwest::async::Client as AsyncClient;
use reqwest::r#async::Client as AsyncClient;
use reqwest::Client;
/// Asserts that a URL is valid HTTPS, else returns an error.

View file

@ -67,7 +67,7 @@ use clap::Arg;
use config::BaseAttributes;
static RAW_CONFIG: &'static str = include_str!(concat!(env!("OUT_DIR"), "/bootstrap.toml"));
const RAW_CONFIG: &str = include_str!(concat!(env!("OUT_DIR"), "/bootstrap.toml"));
fn main() {
let config = BaseAttributes::from_toml_str(RAW_CONFIG).expect("Config file could not be read");

View file

@ -283,7 +283,7 @@ mod natives {
let mut path = x;
path.push("applications");
match create_dir_all(path.to_path_buf()) {
Ok(_) => (()),
Ok(_) => (),
Err(e) => {
return Err(format!(
"Local data directory does not exist and cannot be created: {}",
@ -349,7 +349,7 @@ mod natives {
let mut processes: Vec<super::Process> = Vec::new();
let mut system = sysinfo::System::new();
system.refresh_all();
for (pid, procs) in system.get_process_list() {
for (pid, procs) in system.get_processes() {
processes.push(super::Process {
pid: *pid as usize,
name: procs.name().to_string(),

View file

@ -139,7 +139,7 @@ impl Task for InstallPackageTask {
info!("Creating file: {:?}", string_name);
if !installed_files.contains(&string_name) {
installed_files.push(string_name.to_string());
installed_files.push(string_name);
}
let mut file_metadata = OpenOptions::new();
@ -168,7 +168,7 @@ impl Task for InstallPackageTask {
// Save metadata about this package
context.database.packages.push(LocalInstallation {
name: package.name.to_owned(),
name: package.name,
version,
shortcuts,
files: installed_files,