From 1e9cf24e4ceca8bfd48ff3e6f777fcec54b9a186 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 13 May 2024 23:21:38 -0700 Subject: update crossterm to a version released in the last two years also bump rust-toolchain and edition of yaxpeax-arch --- Cargo.toml | 6 +++--- rust-toolchain | 2 +- src/color.rs | 1 + 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 " ] 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 Display for Colored { 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) => { -- cgit v1.1