aboutsummaryrefslogtreecommitdiff
path: root/src/db/lib.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-07 18:02:13 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-07 18:02:13 +0200
commit14492044394a875475b2159d51234ac1e35531bf (patch)
tree32b47a80219682da216379e65733294c5440ec01 /src/db/lib.rs
parent2e00809af58c142c86fae5f4bad85c4ef5e57872 (diff)
downloadgarage-14492044394a875475b2159d51234ac1e35531bf.tar.gz
garage-14492044394a875475b2159d51234ac1e35531bf.zip
Add warnings when features are not included in build
Diffstat (limited to 'src/db/lib.rs')
-rw-r--r--src/db/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/lib.rs b/src/db/lib.rs
index 5304c195..d96586be 100644
--- a/src/db/lib.rs
+++ b/src/db/lib.rs
@@ -2,6 +2,9 @@
#[cfg(feature = "sqlite")]
extern crate tracing;
+#[cfg(not(any(feature = "lmdb", feature = "sled", feature = "sqlite")))]
+compile_error!("Must activate the Cargo feature for at least one DB engine: lmdb, sled or sqlite.");
+
#[cfg(feature = "lmdb")]
pub mod lmdb_adapter;
#[cfg(feature = "sled")]