From 1b6d45290dae53a06a152dca3584f2156b87bfae Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Tue, 17 Oct 2023 19:18:57 +0200 Subject: [PATCH] bump: Crossterm --- CHANGELOG.md | 4 ++++ Cargo.toml | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b641354..6a5b837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), respectively. The method `is_empty` returns if the table is empty (contains no data rows). Implemented by [Techassi](https://github.com/Techassi) in [#119](https://github.com/Nukesor/comfy-table/pull/119). +### Chore + +- Bump crossterm dependency + ## [7.0.1] - 2023-06-16 ## Fix diff --git a/Cargo.toml b/Cargo.toml index 91a926c..9f3cd72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,6 @@ debug = [] integration_test = [] [dependencies] -crossterm = { version = "0.26", optional = true, default-features = false } strum = "0.25" strum_macros = "0.25" unicode-width = "0.1" @@ -78,3 +77,10 @@ pretty_assertions = "1" proptest = "1" rand = "0.8" rstest = "0.18" + +# We don't need any of the default features for crossterm. +# However, the windows build needs the windows feature enabled. +[target.'cfg(not(windows))'.dependencies] +crossterm = { version = "0.27", optional=true, default-features = false } +[target.'cfg(windows)'.dependencies] +crossterm = { version = "0.27", optional=true, default-features = false, features=["windows"] }