2022-02-22 14:16:50 +00:00
|
|
|
[package]
|
|
|
|
name = "surrealdb"
|
|
|
|
publish = true
|
|
|
|
edition = "2021"
|
2023-09-12 20:29:42 +00:00
|
|
|
version = "1.0.0-beta.12"
|
2023-08-10 06:33:38 +00:00
|
|
|
rust-version = "1.70.0"
|
2022-07-19 00:37:56 +00:00
|
|
|
readme = "CARGO.md"
|
2022-02-22 14:16:50 +00:00
|
|
|
authors = ["Tobie Morgan Hitchcock <tobie@surrealdb.com>"]
|
2022-07-19 00:37:56 +00:00
|
|
|
description = "A scalable, distributed, collaborative, document-graph database, for the realtime web"
|
|
|
|
repository = "https://github.com/surrealdb/surrealdb"
|
|
|
|
homepage = "https://github.com/surrealdb/surrealdb"
|
2022-08-09 10:32:06 +00:00
|
|
|
documentation = "https://docs.rs/surrealdb/"
|
2022-07-19 00:37:56 +00:00
|
|
|
keywords = ["database", "embedded-database", "key-value", "key-value-store", "kv-store"]
|
|
|
|
categories = ["database-implementations", "data-structures", "embedded"]
|
2023-04-01 01:10:55 +00:00
|
|
|
license-file = "../LICENSE"
|
2022-12-30 08:23:19 +00:00
|
|
|
resolver = "2"
|
2022-02-22 14:16:50 +00:00
|
|
|
|
|
|
|
[features]
|
2022-12-07 19:30:29 +00:00
|
|
|
# Public features
|
2023-08-22 11:26:05 +00:00
|
|
|
default = ["protocol-ws", "rustls"]
|
2022-12-30 08:23:19 +00:00
|
|
|
protocol-http = ["dep:reqwest", "dep:tokio-util"]
|
2023-04-23 07:32:27 +00:00
|
|
|
protocol-ws = ["dep:tokio-tungstenite", "tokio/time"]
|
2023-04-17 13:27:32 +00:00
|
|
|
kv-mem = ["dep:echodb", "tokio/time"]
|
2022-12-07 19:30:29 +00:00
|
|
|
kv-indxdb = ["dep:indxdb"]
|
2023-05-31 12:35:41 +00:00
|
|
|
kv-speedb = ["dep:speedb", "tokio/time"]
|
2023-04-17 13:27:32 +00:00
|
|
|
kv-rocksdb = ["dep:rocksdb", "tokio/time"]
|
2023-07-25 12:24:36 +00:00
|
|
|
kv-tikv = ["dep:tikv"]
|
2023-01-02 09:10:04 +00:00
|
|
|
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"]
|
2023-01-07 09:42:45 +00:00
|
|
|
scripting = ["dep:js"]
|
2022-12-08 18:39:46 +00:00
|
|
|
http = ["dep:reqwest"]
|
2022-12-30 08:23:19 +00:00
|
|
|
native-tls = ["dep:native-tls", "reqwest?/native-tls", "tokio-tungstenite?/native-tls"]
|
2023-05-10 02:28:08 +00:00
|
|
|
rustls = ["dep:rustls", "reqwest?/rustls-tls", "tokio-tungstenite?/rustls-tls-webpki-roots"]
|
2022-12-07 19:30:29 +00:00
|
|
|
# Private features
|
2023-06-13 20:55:38 +00:00
|
|
|
kv-fdb = ["foundationdb", "tokio/time"]
|
2022-12-30 08:23:19 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
features = [
|
|
|
|
"protocol-ws", "protocol-http",
|
2023-04-02 14:19:06 +00:00
|
|
|
"kv-mem", "kv-indxdb", "kv-rocksdb",
|
2022-12-30 08:23:19 +00:00
|
|
|
"rustls", "native-tls",
|
|
|
|
"http", "scripting"
|
|
|
|
]
|
|
|
|
targets = []
|
2022-09-27 21:52:39 +00:00
|
|
|
|
2022-02-22 14:16:50 +00:00
|
|
|
[dependencies]
|
2022-09-01 17:46:36 +00:00
|
|
|
addr = { version = "0.15.6", default-features = false, features = ["std"] }
|
2023-07-15 12:18:44 +00:00
|
|
|
argon2 = "0.5.1"
|
2023-03-26 18:02:48 +00:00
|
|
|
ascii = { version = "0.3.2", package = "any_ascii" }
|
2023-03-25 20:49:00 +00:00
|
|
|
async-recursion = "1.0.4"
|
2023-07-03 14:30:42 +00:00
|
|
|
base64_lib = { version = "0.21.2", package = "base64" }
|
2023-02-07 08:39:09 +00:00
|
|
|
bcrypt = "0.14.0"
|
2023-05-29 11:46:41 +00:00
|
|
|
bincode = "1.3.3"
|
2023-08-17 18:03:46 +00:00
|
|
|
bytes = "1.4.0"
|
|
|
|
cedar-policy = "2.3.2"
|
2023-07-15 12:18:44 +00:00
|
|
|
channel = { version = "1.9.0", package = "async-channel" }
|
2023-07-03 14:30:42 +00:00
|
|
|
chrono = { version = "0.4.26", features = ["serde"] }
|
2023-08-17 18:03:46 +00:00
|
|
|
derive = { version = "0.12.0", package = "surrealdb-derive" }
|
2023-06-19 18:41:13 +00:00
|
|
|
deunicode = "1.3.3"
|
2023-05-19 21:02:43 +00:00
|
|
|
dmp = "0.2.0"
|
2023-03-26 21:13:27 +00:00
|
|
|
echodb = { version = "0.4.0", optional = true }
|
2023-04-14 16:01:31 +00:00
|
|
|
executor = { version = "1.5.1", package = "async-executor" }
|
2022-12-30 08:23:19 +00:00
|
|
|
flume = "0.10.14"
|
2023-06-13 20:55:38 +00:00
|
|
|
foundationdb = { version = "0.8.0", default-features = false, features = ["embedded-fdb-include"], optional = true }
|
2023-08-17 18:03:46 +00:00
|
|
|
fst = "0.4.7"
|
2023-04-14 16:01:31 +00:00
|
|
|
futures = "0.3.28"
|
2023-07-03 14:30:42 +00:00
|
|
|
futures-concurrency = "7.3.0"
|
2022-02-22 14:16:50 +00:00
|
|
|
fuzzy-matcher = "0.3.7"
|
2023-07-03 14:30:42 +00:00
|
|
|
geo = { version = "0.25.1", features = ["use-serde"] }
|
2023-03-25 20:49:00 +00:00
|
|
|
indexmap = { version = "1.9.3", features = ["serde"] }
|
2023-03-26 21:13:27 +00:00
|
|
|
indxdb = { version = "0.3.0", optional = true }
|
2023-08-23 19:26:31 +00:00
|
|
|
ipnet = "2.8.0"
|
2023-08-24 14:05:28 +00:00
|
|
|
js = { version = "=0.4.0-beta.4", package = "rquickjs", features = ["array-buffer", "bindgen", "classes", "futures", "loader", "macro", "parallel", "properties","rust-alloc"], optional = true }
|
2023-08-29 10:47:53 +00:00
|
|
|
jsonwebtoken = { version = "8.3.0-surreal.1", package = "surrealdb-jsonwebtoken" }
|
2023-03-26 21:13:43 +00:00
|
|
|
lexicmp = "0.1.0"
|
2023-07-11 18:22:31 +00:00
|
|
|
lru = "0.10.1"
|
2022-09-26 00:29:38 +00:00
|
|
|
md-5 = "0.10.5"
|
2022-02-22 14:16:50 +00:00
|
|
|
nanoid = "0.4.0"
|
2022-12-30 08:23:19 +00:00
|
|
|
native-tls = { version = "0.2.11", optional = true }
|
2023-02-07 08:39:09 +00:00
|
|
|
nom = { version = "7.1.3", features = ["alloc"] }
|
2023-07-03 14:30:42 +00:00
|
|
|
once_cell = "1.18.0"
|
2023-09-05 06:38:39 +00:00
|
|
|
path-clean = "1.0.1"
|
2023-07-15 12:18:44 +00:00
|
|
|
pbkdf2 = { version = "0.12.2", features = ["simple"] }
|
2023-08-17 18:03:46 +00:00
|
|
|
pin-project-lite = "0.2.12"
|
2023-05-29 11:46:41 +00:00
|
|
|
radix_trie = { version = "0.2.1", features = ["serde"] }
|
2022-02-22 14:16:50 +00:00
|
|
|
rand = "0.8.5"
|
2023-08-17 18:03:46 +00:00
|
|
|
regex = "1.9.3"
|
|
|
|
reqwest = { version = "0.11.18", default-features = false, features = ["json", "stream", "multipart"], optional = true }
|
2023-08-29 19:21:55 +00:00
|
|
|
revision = "0.5.0"
|
2023-08-17 18:03:46 +00:00
|
|
|
roaring = { version = "0.10.2", features = ["serde"] }
|
2023-05-19 20:28:31 +00:00
|
|
|
rocksdb = { version = "0.21.0", optional = true }
|
2023-09-12 14:34:58 +00:00
|
|
|
rust_decimal = { version = "1.31.0", features = ["maths", "serde-str"] }
|
2023-06-19 18:41:13 +00:00
|
|
|
rust-stemmers = "1.2.0"
|
2023-01-14 19:28:33 +00:00
|
|
|
rustls = { version = "0.20.8", optional = true }
|
2023-03-25 20:49:00 +00:00
|
|
|
scrypt = "0.11.0"
|
2023-07-19 16:19:19 +00:00
|
|
|
semver = { version = "1.0.18", features = ["serde"] }
|
2023-08-17 18:03:46 +00:00
|
|
|
serde = { version = "1.0.183", features = ["derive"] }
|
|
|
|
serde_json = "1.0.104"
|
2023-01-14 19:28:33 +00:00
|
|
|
sha-1 = "0.10.1"
|
2023-07-03 14:30:42 +00:00
|
|
|
sha2 = "0.10.7"
|
2023-08-17 18:03:46 +00:00
|
|
|
snap = "1.1.0"
|
2023-05-31 12:35:41 +00:00
|
|
|
speedb = { version = "0.0.2", optional = true }
|
2023-04-29 16:44:09 +00:00
|
|
|
storekey = "0.5.0"
|
2023-08-17 18:03:46 +00:00
|
|
|
thiserror = "1.0.44"
|
2023-08-08 16:41:45 +00:00
|
|
|
tikv = { version = "0.2.0-surreal.2", default-features = false, package = "surrealdb-tikv-client", optional = true }
|
2023-05-22 13:38:10 +00:00
|
|
|
tokio-util = { version = "0.7.8", optional = true, features = ["compat"] }
|
2023-03-29 18:16:18 +00:00
|
|
|
tracing = "0.1.37"
|
2023-03-26 21:13:27 +00:00
|
|
|
trice = "0.3.1"
|
2023-01-17 09:02:01 +00:00
|
|
|
ulid = { version = "1.0.0", features = ["serde"] }
|
2023-07-03 14:30:42 +00:00
|
|
|
url = "2.4.0"
|
2022-02-22 14:16:50 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-08-17 18:03:46 +00:00
|
|
|
criterion = { version="0.4", features= ["async_futures"] }
|
2023-03-10 15:24:27 +00:00
|
|
|
env_logger = "0.10.0"
|
2023-08-17 18:03:46 +00:00
|
|
|
pprof = { version = "0.11.1", features = ["flamegraph", "criterion"] }
|
2023-06-10 20:30:37 +00:00
|
|
|
serial_test = "2.0.0"
|
2023-03-10 15:24:27 +00:00
|
|
|
temp-dir = "0.1.11"
|
2023-08-19 09:01:37 +00:00
|
|
|
test-log = { version="0.2.12", features = ["trace"] }
|
2023-08-17 18:03:46 +00:00
|
|
|
time = { version = "0.3.25", features = ["serde"] }
|
|
|
|
tokio = { version = "1.31.0", features = ["macros", "sync", "rt-multi-thread"] }
|
2023-06-30 11:43:19 +00:00
|
|
|
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
|
2023-07-20 12:46:11 +00:00
|
|
|
wiremock = "0.5.19"
|
2022-07-26 19:23:40 +00:00
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2022-12-30 08:23:19 +00:00
|
|
|
pharos = "0.5.3"
|
2023-08-17 18:03:46 +00:00
|
|
|
tokio = { version = "1.31.0", default-features = false, features = ["rt", "sync"] }
|
2023-07-19 16:19:19 +00:00
|
|
|
uuid = { version = "1.4.1", features = ["serde", "js", "v4", "v7"] }
|
2023-07-03 14:30:42 +00:00
|
|
|
wasm-bindgen-futures = "0.4.37"
|
2023-08-17 18:03:46 +00:00
|
|
|
wasmtimer = { version = "0.2.0", default-features = false, features = ["tokio"] }
|
2023-02-07 08:39:09 +00:00
|
|
|
ws_stream_wasm = "0.7.4"
|
2022-07-26 19:23:40 +00:00
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2023-08-17 18:03:46 +00:00
|
|
|
tokio = { version = "1.31.0", default-features = false, features = ["macros", "io-util", "io-std", "fs", "rt-multi-thread", "time", "sync"] }
|
2023-01-14 19:28:33 +00:00
|
|
|
tokio-tungstenite = { version = "0.18.0", optional = true }
|
2023-07-19 16:19:19 +00:00
|
|
|
uuid = { version = "1.4.1", features = ["serde", "v4", "v7"] }
|
2023-04-30 22:50:33 +00:00
|
|
|
|
|
|
|
[lib]
|
2023-05-01 17:15:42 +00:00
|
|
|
bench = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "executor"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "parser"
|
|
|
|
harness = false
|
2023-07-07 18:43:16 +00:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "processor"
|
2023-07-11 18:22:31 +00:00
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "index_btree"
|
2023-07-15 12:18:44 +00:00
|
|
|
harness = false
|