diff --git a/Cargo.lock b/Cargo.lock index 1227932..4ea9b74 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -428,7 +428,7 @@ checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" [[package]] name = "binvec" -version = "1.20.28" +version = "1.20.29" dependencies = [ "iced", "image", @@ -737,18 +737,6 @@ dependencies = [ "crossbeam-utils", ] -[[package]] -name = "console" -version = "0.16.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fe5f465a4f6fee88fad41b85d990f84c835335e85b5d9e6e63e0d06d28cba7c" -dependencies = [ - "encode_unicode", - "libc", - "unicode-width", - "windows-sys 0.61.2", -] - [[package]] name = "cookie" version = "0.18.2" @@ -1048,12 +1036,6 @@ version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" -[[package]] -name = "encode_unicode" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" - [[package]] name = "encoding_rs" version = "0.8.40" @@ -2184,19 +2166,6 @@ dependencies = [ "hashbrown 0.15.4", ] -[[package]] -name = "indicatif" -version = "0.18.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9433806cd6b4ec1aba79c021c7e4c58fb4c3b9977c085062e611ac929998fb0c" -dependencies = [ - "console", - "portable-atomic", - "unicode-width", - "unit-prefix", - "web-time", -] - [[package]] name = "instant" version = "0.1.13" @@ -2413,7 +2382,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -3528,15 +3497,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "quick-xml" -version = "0.38.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c" -dependencies = [ - "memchr", -] - [[package]] name = "quinn" version = "0.11.8" @@ -4153,14 +4113,12 @@ checksum = "0f7d95a54511e0c7be3f51e8867aa8cf35148d7b9445d44de2f943e2b206e749" [[package]] name = "self_update" -version = "0.44.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e79722b5a505d4ddc77527455a97244e9e8c4c07533ff44cf4421cce7bb6d17" +checksum = "1c39da82b90ac89d099e21109c81c91b70bd85a582d8e382a5e88aa007f5310b" dependencies = [ "http", - "indicatif", "log", - "quick-xml 0.38.4", "regex", "reqwest", "self-replace", @@ -4928,12 +4886,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c" -[[package]] -name = "unit-prefix" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81e544489bf3d8ef66c953931f56617f423cd4b5494be343d9b9d3dda037b9a3" - [[package]] name = "untrusted" version = "0.9.0" @@ -5292,7 +5244,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "896fdafd5d28145fce7958917d69f2fd44469b1d4e861cb5961bcbeebc6d1484" dependencies = [ "proc-macro2", - "quick-xml 0.37.5", + "quick-xml", "quote", ] diff --git a/Cargo.toml b/Cargo.toml index 1ab22b9..a541746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ rfd = "0.17.0" # For file dialogs image = "0.25" # Image lib, here used for binarizing and scaling images vtracer = { git = "https://github.com/RouHim/vtracer" } # Generates vector images from raster images visioncortex = "0.8" # Helper library for vtracer -self_update = { version = "0.44.0", features = ["rustls", "reqwest"], default-features = false } # For updating the app +self_update = { version = "1.0.0", features = ["rustls", "reqwest", "github"], default-features = false } # For updating the app [profile.release] panic = "abort" # Strip expensive panic clean-up logic diff --git a/src/updater.rs b/src/updater.rs index 86fa716..77bda74 100644 --- a/src/updater.rs +++ b/src/updater.rs @@ -31,10 +31,10 @@ pub fn update() { match status { Err(err) => println!("Failed to update: {err}"), - Ok(self_update::Status::UpToDate(version)) => { + Ok(self_update::VersionStatus::UpToDate(version)) => { println!("binvec {version} is up to date"); } - Ok(self_update::Status::Updated(version)) => { + Ok(self_update::VersionStatus::Updated(version)) => { println!("binvec updated to {version}"); if env::var_os(RESTART_MARKER).is_some() { eprintln!( @@ -44,6 +44,8 @@ pub fn update() { } restart_process(current_executable); } + // `VersionStatus` is non-exhaustive; future variants need no handling. + Ok(_) => {} } }