Make FoundationDB version and features configurable (#1249)

This commit is contained in:
Rushmore Mushambi 2022-09-27 23:52:39 +02:00 committed by GitHub
parent cddef8ca19
commit a5ee7f6b54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 5 deletions

View file

@ -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"]
storage-fdb = ["surrealdb/kv-fdb-6_3"]
scripting = ["surrealdb/scripting"]
http = ["surrealdb/http"]
[workspace]
members = ["lib"]
@ -40,7 +43,7 @@ serde = { version = "1.0.145", 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.36"
tokio = { version = "1.21.1", features = ["macros", "signal"] }
warp = { version = "0.3.2", features = ["compression", "tls", "websocket"] }

View file

@ -17,13 +17,24 @@ 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-5_1 = ["foundationdb/fdb-5_1", "kv-fdb"]
kv-fdb-5_2 = ["foundationdb/fdb-5_2", "kv-fdb"]
kv-fdb-6_0 = ["foundationdb/fdb-6_0", "kv-fdb"]
kv-fdb-6_1 = ["foundationdb/fdb-6_1", "kv-fdb"]
kv-fdb-6_2 = ["foundationdb/fdb-6_2", "kv-fdb"]
kv-fdb-6_3 = ["foundationdb/fdb-6_3", "kv-fdb"]
kv-fdb-7_0 = ["foundationdb/fdb-7_0", "kv-fdb"]
kv-fdb-7_1 = ["foundationdb/fdb-7_1", "kv-fdb"]
kv-mem = ["dep:echodb"]
kv-indxdb = ["dep:indxdb"]
kv-rocksdb = ["dep:rocksdb"]
scripting = ["dep:js", "dep:executor"]
http = ["dep:surf"]
# This is an internal feature. It shouldn't be activated directly.
# One of the `kv-fdb-*` features that specify the version to use must be used instead.
kv-fdb = ["foundationdb"]
[dependencies]
addr = { version = "0.15.6", default-features = false, features = ["std"] }
argon2 = "0.4.1"
@ -37,7 +48,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.23.0", features = ["use-serde"] }
indxdb = { version = "0.2.0", optional = true }