From aa657d12fc717ff78868f557f2bd2cbb5c63cb9d Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 13 Nov 2023 15:26:46 +0100 Subject: [PATCH] Ensure rt and rt_multi_thread aren't both enabled --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e63c41d..47bbaab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,8 @@ clippy::new_without_default, clippy::useless_conversion )] +#[cfg(all(feature = "rt", feature = "rt_multi_thread"))] +compile_error!("feature \"rt\" and feature \"rt_multi_thread\" cannot be enabled at the same time"); use url::{ParseError, Url};