From d1ce01cb9a5328fe9c64751d03217d6d7cf39ca4 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 1 Oct 2023 23:24:54 +0900 Subject: [PATCH] fix checking tui-rs and ratatui are exclusive on using custom backend --- src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f2a314a..f7e3197 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,10 +5,14 @@ #![doc = include_str!("../README.md")] #[cfg(all( - any(feature = "crossterm", feature = "termion"), - any(feature = "ratatui-crossterm", feature = "ratatui-termion"), + any(feature = "crossterm", feature = "termion", feature = "your-backend"), + any( + feature = "ratatui-crossterm", + feature = "ratatui-termion", + feature = "ratatui-your-backend" + ), ))] -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"); +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#installation"); mod cursor; mod highlight;