From c945f7e6c572ed5bba70b1d895464c63be72590d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 7 Aug 2022 17:50:09 +0200 Subject: [PATCH] Add branch for `telegrambot` binary without the required feature --- src/bin/telegrambot.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/telegrambot.rs b/src/bin/telegrambot.rs index ff90f2e..b9ccf66 100644 --- a/src/bin/telegrambot.rs +++ b/src/bin/telegrambot.rs @@ -1,6 +1,9 @@ -#![cfg(feature = "telegram")] - +#[cfg(not(feature = "telegram"))] +fn main() { + println!("The `telegram` feature was not included on compilation, therefore this binary is not available.") +} +#[cfg(feature = "telegram")] fn main() { println!("Hello telegram world!") -} \ No newline at end of file +}