aboutsummaryrefslogtreecommitdiff
path: root/src/garage
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/garage
parent48ffaaadfc790142ed9556f5227913fa8c32d2ed (diff)
downloadgarage-b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75.tar.gz
garage-b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75.zip
Make all DB engines optional build features
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/Cargo.toml12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/garage/Cargo.toml b/src/garage/Cargo.toml
index 78579995..00b16ded 100644
--- a/src/garage/Cargo.toml
+++ b/src/garage/Cargo.toml
@@ -74,9 +74,17 @@ base64 = "0.13"
[features]
-default = [ "bundled-libs", "metrics" ]
-kubernetes-discovery = [ "garage_rpc/kubernetes-discovery" ]
+default = [ "bundled-libs", "metrics", "sled" ]
+
k2v = [ "garage_util/k2v", "garage_api/k2v" ]
+
+# Database engines, Sled is still our default even though we don't like it
+sled = [ "garage_model/sled" ]
+lmdb = [ "garage_model/lmdb" ]
+sqlite = [ "garage_model/sqlite" ]
+
+# Automatic registration and discovery via Kubernetes API
+kubernetes-discovery = [ "garage_rpc/kubernetes-discovery" ]
# Prometheus exporter (/metrics endpoint).
metrics = [ "garage_api/metrics", "opentelemetry-prometheus", "prometheus" ]
# Exporter for the OpenTelemetry Collector.