Skip to content

Commit

Permalink
Moving compile check for otlp-tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusz-reichert authored and m-reichert committed Oct 25, 2024
1 parent 1aac8c9 commit 252b7b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bin/electrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_() }

Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 252b7b3

Please sign in to comment.