aboutsummaryrefslogtreecommitdiff
path: root/src/db/lib.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-06 17:09:43 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-06 17:09:43 +0200
commitb886c75450e3ee6a7c2b0a8265d7ada20a4d9d75 (patch)
treeac5470d56a73e14698bb1b3d24ee173e720d55c1 /src/db/lib.rs
parent48ffaaadfc790142ed9556f5227913fa8c32d2ed (diff)
downloadgarage-b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75.tar.gz
garage-b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75.zip
Make all DB engines optional build features
Diffstat (limited to 'src/db/lib.rs')
-rw-r--r--src/db/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/lib.rs b/src/db/lib.rs
index f185114e..5304c195 100644
--- a/src/db/lib.rs
+++ b/src/db/lib.rs
@@ -1,8 +1,12 @@
#[macro_use]
+#[cfg(feature = "sqlite")]
extern crate tracing;
+#[cfg(feature = "lmdb")]
pub mod lmdb_adapter;
+#[cfg(feature = "sled")]
pub mod sled_adapter;
+#[cfg(feature = "sqlite")]
pub mod sqlite_adapter;
pub mod counted_tree_hack;