From fd3306343e3483261b58b385778fb8a5ccd44039 Mon Sep 17 00:00:00 2001 From: rhysd Date: Fri, 14 Apr 2023 22:04:02 +0900 Subject: [PATCH] show explicit error message when both crossterm and termion are not enabled --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ef42799..72a2e47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,6 +10,14 @@ ))] compile_error!("tui-rs support and ratatui support are exclussive. only one of them can be enabled at the same time. see https://github.com/rhysd/tui-textarea"); +#[cfg(not(any( + feature = "crossterm", + feature = "termion", + feature = "ratatui-crossterm", + feature = "ratatui-termion", +)))] +compile_error!("neither crossterm nor termion is enabled in features. see https://github.com/rhysd/tui-textarea"); + mod cursor; mod highlight; mod history;