Skip to content

Commit

Permalink
fix: downgrade crossterm for windows compatibility (#6204)
Browse files Browse the repository at this point in the history
Description
---
A recent updates `crossterm` to the latest version, `0.27.0`, from
version `0.25.0`. The behaviour of keyboard events on Windows changed
from version `0.26.0` upwards, making the use of the console wallet and
to a lesser degree the base node in Windows Console unusable as multiple
keystrokes events are generated for each keystroke.

This PR did not seek to find a solution for upgrading to the latest
version of `crossterm`, but merely to revert the change.

Motivation and Context
---
See above.

How Has This Been Tested?
---
System-level testing

What process can a PR reviewer use to test or verify this change?
---
Review code changes
System-level testing

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->

Co-authored-by: SW van Heerden <swvheerden@gmail.com>
  • Loading branch information
hansieodendaal and SWvheerden committed Mar 12, 2024
1 parent 6370e18 commit 243243d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion applications/minotari_console_wallet/Cargo.toml
Expand Up @@ -34,7 +34,7 @@ tokio = { version = "1.36", features = ["signal"] }
chrono = { version = "0.4.19", default-features = false }
clap = { version = "3.2", features = ["derive", "env"] }
config = "0.13.0"
crossterm = { version = "0.27.0" }
crossterm = { version = "0.25.0" }
digest = "0.10"
futures = { version = "^0.3.16", default-features = false, features = [
"alloc",
Expand Down
2 changes: 1 addition & 1 deletion applications/minotari_merge_mining_proxy/Cargo.toml
Expand Up @@ -29,7 +29,7 @@ bytes = "1.1"
chrono = { version = "0.4.19", default-features = false }
clap = { version = "3.2", features = ["derive", "env"] }
config = { version = "0.13.0" }
crossterm = { version = "0.27.0" }
crossterm = { version = "0.25.0" }
futures = { version = "^0.3.16", features = ["async-await"] }
hex = "0.4.2"
hyper = "0.14.12"
Expand Down
2 changes: 1 addition & 1 deletion applications/minotari_miner/Cargo.toml
Expand Up @@ -23,7 +23,7 @@ bufstream = "0.1"
chrono = { version = "0.4.19", default-features = false }
clap = { version = "3.2", features = ["derive"] }
crossbeam = "0.8"
crossterm = { version = "0.27.0" }
crossterm = { version = "0.25.0" }
derivative = "2.2.0"
futures = "0.3"
hex = "0.4.2"
Expand Down
2 changes: 1 addition & 1 deletion applications/minotari_node/Cargo.toml
Expand Up @@ -31,7 +31,7 @@ chrono = { version = "0.4.19", default-features = false }
clap = { version = "3.2", features = ["derive", "env"] }
console-subscriber = "0.1.8"
config = { version = "0.13.0" }
crossterm = { version = "0.27.0", features = ["event-stream"] }
crossterm = { version = "0.25.0", features = ["event-stream"] }
derive_more = "0.99.17"
either = "1.6.1"
futures = { version = "^0.3.16", default-features = false, features = ["alloc"] }
Expand Down

0 comments on commit 243243d

Please sign in to comment.