diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-06 17:09:43 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-06 17:09:43 +0200 |
commit | b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75 (patch) | |
tree | ac5470d56a73e14698bb1b3d24ee173e720d55c1 /src/db/Cargo.toml | |
parent | 48ffaaadfc790142ed9556f5227913fa8c32d2ed (diff) | |
download | garage-b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75.tar.gz garage-b886c75450e3ee6a7c2b0a8265d7ada20a4d9d75.zip |
Make all DB engines optional build features
Diffstat (limited to 'src/db/Cargo.toml')
-rw-r--r-- | src/db/Cargo.toml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/db/Cargo.toml b/src/db/Cargo.toml index 44f0be56..62dda2ca 100644 --- a/src/db/Cargo.toml +++ b/src/db/Cargo.toml @@ -21,9 +21,9 @@ err-derive = "0.3" hexdump = "0.1" tracing = "0.1.30" -heed = { version = "0.11", default-features = false, features = ["lmdb"] } -rusqlite = "0.27" -sled = "0.34" +heed = { version = "0.11", default-features = false, features = ["lmdb"], optional = true } +rusqlite = { version = "0.27", optional = true } +sled = { version = "0.34", optional = true } # cli deps clap = { version = "3.1.18", optional = true, features = ["derive", "env"] } @@ -35,3 +35,5 @@ mktemp = "0.4" [features] bundled-libs = [ "rusqlite/bundled" ] cli = ["clap", "pretty_env_logger"] +lmdb = [ "heed" ] +sqlite = [ "rusqlite" ] |