aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/garage/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/garage/main.rs b/src/garage/main.rs
index 7d00811a..751dd941 100644
--- a/src/garage/main.rs
+++ b/src/garage/main.rs
@@ -11,6 +11,12 @@ mod server;
#[cfg(feature = "telemetry-otlp")]
mod tracing_setup;
+#[cfg(not(any(feature = "bundled-libs", feature = "system-libs")))]
+compile_error!("Either bundled-libs or system-libs Cargo feature must be enabled");
+
+#[cfg(all(feature = "bundled-libs", feature = "system-libs"))]
+compile_error!("Only one of bundled-libs and system-libs Cargo features must be enabled");
+
use std::net::SocketAddr;
use std::path::PathBuf;