make crossterm dependency optional

This commit is contained in:
2022-10-25 22:40:56 +02:00
parent 7fa6be6ff4
commit 7cec54f62b
5 changed files with 37 additions and 242 deletions

View File

@@ -72,6 +72,7 @@ impl Heatmap {
self.data[index]
}
#[cfg(feature = "crossterm")]
pub fn print_as_hex(&self) -> std::io::Result<()> {
use crossterm::{
style::{Attribute, Color, Print, SetAttribute, SetBackgroundColor},