Skip to content

Commit

Permalink
Make FoundationDB version configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
rushmorem committed Sep 5, 2022
1 parent 93dedd4 commit f867778
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ version = "1.0.0-beta.7"
authors = ["Tobie Morgan Hitchcock <tobie@surrealdb.com>"]

[features]
default = []
default = ["storage-rocksdb", "scripting", "http"]
storage-rocksdb = ["surrealdb/kv-rocksdb"]
storage-tikv = ["surrealdb/kv-tikv"]
storage-fdb = ["surrealdb/kv-fdb"]
scripting = ["surrealdb/scripting"]
http = ["surrealdb/http"]

[workspace]
members = ["lib"]
Expand Down Expand Up @@ -40,7 +43,7 @@ serde = { version = "1.0.144", features = ["derive"] }
serde_cbor = "0.11.2"
serde_json = "1.0.85"
serde_pack = { version = "1.1.0", package = "rmp-serde" }
surrealdb = { path = "lib" }
surrealdb = { path = "lib", default-features = false, features = ["kv-mem", "parallel"] }
thiserror = "1.0.32"
tokio = { version = "1.20.1", features = ["macros"] }
warp = { version = "0.3.2", features = ["compression", "tls", "websocket"] }
Expand Down
12 changes: 10 additions & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ license = "Apache-2.0"
default = ["parallel", "kv-mem", "kv-rocksdb", "scripting", "http"]
parallel = ["dep:executor"]
kv-tikv = ["dep:tikv"]
kv-fdb = ["dep:foundationdb"]
kv-fdb = ["kv-fdb-6_3"]
kv-fdb-5_1 = ["foundationdb/fdb-5_1"]
kv-fdb-5_2 = ["foundationdb/fdb-5_2"]
kv-fdb-6_0 = ["foundationdb/fdb-6_0"]
kv-fdb-6_1 = ["foundationdb/fdb-6_1"]
kv-fdb-6_2 = ["foundationdb/fdb-6_2"]
kv-fdb-6_3 = ["foundationdb/fdb-6_3"]
kv-fdb-7_0 = ["foundationdb/fdb-7_0"]
kv-fdb-7_1 = ["foundationdb/fdb-7_1"]
kv-mem = ["dep:echodb"]
kv-indxdb = ["dep:indxdb"]
kv-rocksdb = ["dep:rocksdb"]
Expand All @@ -37,7 +45,7 @@ dmp = "0.1.1"
echodb = { version = "0.3.0", optional = true }
executor = { version = "1.4.1", package = "async-executor", optional = true }
futures = "0.3.24"
foundationdb = { version = "0.7.0", default-features = false, features = ["fdb-6_3", "embedded-fdb-include"], optional = true }
foundationdb = { version = "0.7.0", default-features = false, features = ["embedded-fdb-include"], optional = true }
fuzzy-matcher = "0.3.7"
geo = { version = "0.22.1", features = ["use-serde"] }
indxdb = { version = "0.2.0", optional = true }
Expand Down

0 comments on commit f867778

Please sign in to comment.