diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-07 17:57:12 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-07 17:57:12 +0200 |
commit | 2e00809af58c142c86fae5f4bad85c4ef5e57872 (patch) | |
tree | bcf6fe4516c28bab6f59c91bb984ab89b3f02531 /src/garage | |
parent | 2559f63e9bb58a66da70f33e852ebbd5f909876e (diff) | |
download | garage-2e00809af58c142c86fae5f4bad85c4ef5e57872.tar.gz garage-2e00809af58c142c86fae5f4bad85c4ef5e57872.zip |
Error messages when system-libs XOR bundled-libs != 1
Diffstat (limited to 'src/garage')
-rw-r--r-- | src/garage/main.rs | 6 |
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; |