aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-05-13 23:21:38 -0700
committeriximeow <me@iximeow.net>2024-05-13 23:21:38 -0700
commit1e9cf24e4ceca8bfd48ff3e6f777fcec54b9a186 (patch)
treecaa1c0e9173d76110b3441daa564687b99bc07b0
parentcf6714dd85f787fc527936495d2dee5cd41479df (diff)
update crossterm to a version released in the last two years
also bump rust-toolchain and edition of yaxpeax-arch
-rw-r--r--Cargo.toml6
-rw-r--r--rust-toolchain2
-rw-r--r--src/color.rs1
3 files changed, 5 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 50c141a..c6d3cbf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,16 +2,16 @@
authors = [ "iximeow <me@iximeow.net>" ]
description = "fundamental traits to describe an architecture in the yaxpeax project"
-edition = "2018"
+edition = "2021"
keywords = ["disassembly", "disassembler"]
license = "0BSD"
name = "yaxpeax-arch"
repository = "https://git.iximeow.net/yaxpeax-arch/"
-version = "0.2.7"
+version = "0.2.8"
[dependencies]
"num-traits" = { version = "0.2", default-features = false }
-"crossterm" = { version = "0.19.0", optional = true }
+"crossterm" = { version = "0.27.0", optional = true }
"serde" = { version = "1.0", optional = true }
"serde_derive" = { version = "1.0", optional = true }
diff --git a/rust-toolchain b/rust-toolchain
index b7921ae..df484cb 100644
--- a/rust-toolchain
+++ b/rust-toolchain
@@ -1 +1 @@
-1.54.0
+1.71.0
diff --git a/src/color.rs b/src/color.rs
index d50ec8b..e7cb60c 100644
--- a/src/color.rs
+++ b/src/color.rs
@@ -13,6 +13,7 @@ impl <T: Display> Display for Colored<T> {
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
match self {
Colored::Color(t, before) => {
+ use crossterm::style::Stylize;
write!(fmt, "{}", style::style(t).with(*before))
},
Colored::Just(t) => {