From 4fb19a4f5bd0e45af1d29d1574c677c26fff6d46 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Wed, 15 Jun 2022 17:51:07 +0200 Subject: [PATCH] Use latest git version for crossterm to fix bug - Fix visual bugs on windows using git-bash that are caused by crossterm - The crossterm bug was fixed in upstream by PR-657 but is not yet released to crates.io - Bump version to 0.1.3 --- Cargo.lock | 5 ++--- Cargo.toml | 8 ++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 869c92f..4a17cb8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -141,8 +141,7 @@ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" [[package]] name = "crossterm" version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2102ea4f781910f8a5b98dd061f4c2023f479ce7bb1236330099ceb5a93cf17" +source = "git+https://github.com/crossterm-rs/crossterm.git?rev=21155716e2eedd5ba8ab97168e5eed7cd50d2ad8#21155716e2eedd5ba8ab97168e5eed7cd50d2ad8" dependencies = [ "bitflags", "crossterm_winapi", @@ -183,7 +182,7 @@ dependencies = [ [[package]] name = "ffdl" -version = "0.1.2" +version = "0.1.3" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 0f86362..ce7fb5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ffdl" -version = "0.1.2" +version = "0.1.3" authors = ["daniel m "] edition = "2021" description = "Download files fast" @@ -11,8 +11,12 @@ reqwest = { version = "0.11.10", features = [ "stream" ] } futures = "0.3.21" percent-encoding = "2.1.0" regex = "1.5.5" -crossterm = "0.23.2" clap = { version = "3.1.12", features = [ "derive" ] } chrono = "0.4.19" thiserror = "1.0.30" anyhow = "1.0.57" + +# crossterm had a bug that caused issues on windows with git-bash. This was fixed in a pr, but the +# new version is not yet published to crates.io, so a git dependency with commit pinning is used +# crossterm = "0.23.2" +crossterm = { git = "https://github.com/crossterm-rs/crossterm.git", rev = "21155716e2eedd5ba8ab97168e5eed7cd50d2ad8" }