dependencies bump

This commit is contained in:
Roey Darwish Dror
2019-08-13 14:27:41 +03:00
parent 71914ffde1
commit bfbf7039e2
3 changed files with 261 additions and 261 deletions

494
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,7 @@ categories = ["os"]
keywords = ["upgrade", "update"]
license-file = "LICENSE"
repository = "https://github.com/r-darwish/topgrade"
version = "2.6.0"
version = "2.7.0"
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>"]
exclude = ["doc/screenshot.gif"]
edition = "2018"
@@ -22,7 +22,7 @@ structopt = "0.2.16"
log = "0.4.6"
walkdir = "2.2.7"
console = "0.7.5"
self_update_crate = { version = "0.5.1", optional = true, package = "self_update" }
self_update_crate = { version = "0.6.0", optional = true, package = "self_update" }
lazy_static = "1.3.0"
rust-ini = "0.13.0"
chrono = "0.4.6"
@@ -34,7 +34,7 @@ pretty_env_logger = "0.3.0"
glob = "0.3.0"
[target.'cfg(unix)'.dependencies]
nix = "0.14.0"
nix = "0.15.0"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["wincon"] }

View File

@@ -12,19 +12,17 @@ pub fn self_update() -> Result<(), Error> {
print_separator("Self update");
let current_exe = env::current_exe();
let target = self_update_crate::get_target().context(ErrorKind::SelfUpdate)?;
let target = self_update_crate::get_target();
let result = Update::configure()
.and_then(|mut u| {
u.repo_owner("r-darwish")
.repo_name("topgrade")
.target(&target)
.bin_name(if cfg!(windows) { "topgrade.exe" } else { "topgrade" })
.show_output(false)
.show_download_progress(true)
.current_version(self_update_crate::cargo_crate_version!())
.no_confirm(true)
.build()
})
.repo_owner("r-darwish")
.repo_name("topgrade")
.target(&target)
.bin_name(if cfg!(windows) { "topgrade.exe" } else { "topgrade" })
.show_output(false)
.show_download_progress(true)
.current_version(self_update_crate::cargo_crate_version!())
.no_confirm(true)
.build()
.and_then(Update::update_extended)
.context(ErrorKind::SelfUpdate)?;