diff --git a/src/bin/electrs.rs b/src/bin/electrs.rs index 281d8429..8b09f568 100644 --- a/src/bin/electrs.rs +++ b/src/bin/electrs.rs @@ -153,9 +153,6 @@ fn main_() { } } -#[cfg(all(feature = "otlp-tracing", feature = "no-otlp-tracing"))] -compile_error!("Cannot enable both the 'otlp-tracing' and 'no-otlp-tracing' (default) features"); - #[cfg(not(feature = "otlp-tracing"))] fn main() { main_() } diff --git a/src/lib.rs b/src/lib.rs index eee64560..8bf1ca91 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,5 +36,8 @@ pub mod util; #[cfg(feature = "liquid")] pub mod elements; +#[cfg(all(feature = "otlp-tracing", feature = "no-otlp-tracing"))] +compile_error!("Cannot enable both the 'otlp-tracing' and 'no-otlp-tracing' (default) features"); + #[cfg(feature = "otlp-tracing")] pub mod otlp_trace;