diff --git a/src/lib.rs b/src/lib.rs index 8bf1ca91b..249f13d15 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");