From 522e5674cbf76a25198b3990634eafb85cad9196 Mon Sep 17 00:00:00 2001 From: Mariusz Reichert Date: Fri, 25 Oct 2024 11:41:05 +0200 Subject: [PATCH] Adding additional compile check --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 8bf1ca91..249f13d1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,6 +36,9 @@ pub mod util; #[cfg(feature = "liquid")] pub mod elements; +#[cfg(not(any(feature = "otlp-tracing", feature = "no-otlp-tracing")))] +compile_error!("Must enable one of the 'otlp-tracing' or 'no-otlp-tracing' features"); + #[cfg(all(feature = "otlp-tracing", feature = "no-otlp-tracing"))] compile_error!("Cannot enable both the 'otlp-tracing' and 'no-otlp-tracing' (default) features");