aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-07 17:57:12 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-07 17:57:12 +0200
commit2e00809af58c142c86fae5f4bad85c4ef5e57872 (patch)
treebcf6fe4516c28bab6f59c91bb984ab89b3f02531
parent2559f63e9bb58a66da70f33e852ebbd5f909876e (diff)
downloadgarage-2e00809af58c142c86fae5f4bad85c4ef5e57872.tar.gz
garage-2e00809af58c142c86fae5f4bad85c4ef5e57872.zip
Error messages when system-libs XOR bundled-libs != 1
-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;