2024-02-02 22:10:47 +00:00
|
|
|
[package]
|
|
|
|
name = "surrealdb-core"
|
|
|
|
publish = true
|
|
|
|
edition = "2021"
|
2024-05-10 09:05:32 +00:00
|
|
|
version = "2.0.0"
|
2024-03-27 18:22:18 +00:00
|
|
|
rust-version = "1.77.0"
|
2024-02-02 22:10:47 +00:00
|
|
|
readme = "../lib/CARGO.md"
|
|
|
|
authors = ["Tobie Morgan Hitchcock <tobie@surrealdb.com>"]
|
|
|
|
description = "A scalable, distributed, collaborative, document-graph database, for the realtime web"
|
|
|
|
repository = "https://github.com/surrealdb/surrealdb"
|
|
|
|
homepage = "https://github.com/surrealdb/surrealdb"
|
|
|
|
documentation = "https://docs.rs/surrealdb-core/"
|
|
|
|
keywords = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"database",
|
|
|
|
"embedded-database",
|
|
|
|
"key-value",
|
|
|
|
"key-value-store",
|
|
|
|
"kv-store",
|
2024-02-02 22:10:47 +00:00
|
|
|
]
|
|
|
|
categories = ["database-implementations", "data-structures", "embedded"]
|
|
|
|
license-file = "../LICENSE"
|
|
|
|
resolver = "2"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
# Public features
|
|
|
|
default = ["kv-mem"]
|
2024-05-23 13:04:20 +00:00
|
|
|
kv-mem = ["dep:echodb", "tokio/time", "dep:tempfile", "dep:ext-sort"]
|
2024-02-02 22:10:47 +00:00
|
|
|
kv-indxdb = ["dep:indxdb"]
|
2024-03-28 16:29:55 +00:00
|
|
|
kv-rocksdb = ["dep:rocksdb", "tokio/time", "dep:tempfile", "dep:ext-sort"]
|
2024-07-17 22:44:05 +00:00
|
|
|
kv-tikv = ["dep:tikv", "tokio/time", "dep:tempfile", "dep:ext-sort"]
|
|
|
|
kv-fdb = ["dep:foundationdb", "tokio/time", "dep:tempfile", "dep:ext-sort"]
|
2024-03-28 16:29:55 +00:00
|
|
|
kv-surrealkv = ["dep:surrealkv", "tokio/time", "dep:tempfile", "dep:ext-sort"]
|
2024-02-02 22:10:47 +00:00
|
|
|
scripting = ["dep:js"]
|
|
|
|
http = ["dep:reqwest"]
|
2024-05-08 14:26:41 +00:00
|
|
|
ml = ["dep:surrealml"]
|
2024-03-15 14:37:27 +00:00
|
|
|
jwks = ["dep:reqwest"]
|
2024-02-02 22:10:47 +00:00
|
|
|
arbitrary = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"dep:arbitrary",
|
|
|
|
"dep:regex-syntax",
|
|
|
|
"rust_decimal/rust-fuzz",
|
|
|
|
"geo-types/arbitrary",
|
|
|
|
"uuid/arbitrary",
|
2024-02-02 22:10:47 +00:00
|
|
|
]
|
2024-07-17 22:44:05 +00:00
|
|
|
# Special features
|
|
|
|
kv-fdb-7_1 = ["foundationdb/fdb-7_1"]
|
|
|
|
kv-fdb-7_3 = ["foundationdb/fdb-7_3"]
|
2024-02-02 22:10:47 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2024-02-09 09:41:42 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2024-04-03 09:54:12 +00:00
|
|
|
features = ["kv-mem", "kv-rocksdb", "http", "scripting"]
|
2024-02-02 22:10:47 +00:00
|
|
|
targets = []
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
addr = { version = "0.15.6", default-features = false, features = ["std"] }
|
2024-05-10 07:12:07 +00:00
|
|
|
ahash = "0.8.11"
|
2024-06-12 09:18:00 +00:00
|
|
|
ammonia = "4.0.0"
|
2024-04-03 09:54:12 +00:00
|
|
|
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
|
2024-02-02 22:10:47 +00:00
|
|
|
argon2 = "0.5.2"
|
|
|
|
ascii = { version = "0.3.2", package = "any_ascii" }
|
|
|
|
async-recursion = "1.0.5"
|
2024-04-03 09:54:12 +00:00
|
|
|
base64 = "0.21.5"
|
2024-02-02 22:10:47 +00:00
|
|
|
bcrypt = "0.15.0"
|
2024-08-16 14:58:38 +00:00
|
|
|
blake3 = "1.5.3"
|
2024-02-02 22:10:47 +00:00
|
|
|
bincode = "1.3.3"
|
|
|
|
bytes = "1.5.0"
|
2024-04-17 18:56:08 +00:00
|
|
|
ciborium = "0.2.1"
|
2024-02-02 22:10:47 +00:00
|
|
|
cedar-policy = "2.4.2"
|
|
|
|
channel = { version = "1.9.0", package = "async-channel" }
|
|
|
|
chrono = { version = "0.4.31", features = ["serde"] }
|
2024-04-30 18:09:54 +00:00
|
|
|
dashmap = "5.5.3"
|
2024-02-02 22:10:47 +00:00
|
|
|
derive = { version = "0.12.0", package = "surrealdb-derive" }
|
|
|
|
deunicode = "1.4.1"
|
|
|
|
dmp = "0.2.0"
|
2024-07-17 22:44:05 +00:00
|
|
|
echodb = { version = "0.7.0", optional = true }
|
2024-02-02 22:10:47 +00:00
|
|
|
executor = { version = "1.8.0", package = "async-executor" }
|
2024-03-28 16:29:55 +00:00
|
|
|
ext-sort = { version = "^0.1.4", optional = true }
|
2024-07-17 22:44:05 +00:00
|
|
|
foundationdb = { version = "0.9.0", default-features = false, features = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"embedded-fdb-include",
|
2024-02-02 22:10:47 +00:00
|
|
|
], optional = true }
|
|
|
|
fst = "0.4.7"
|
|
|
|
futures = "0.3.29"
|
|
|
|
fuzzy-matcher = "0.3.7"
|
|
|
|
geo = { version = "0.27.0", features = ["use-serde"] }
|
2024-04-03 09:54:12 +00:00
|
|
|
geo-types = { version = "0.7.12", features = ["arbitrary"] }
|
2024-02-02 22:10:47 +00:00
|
|
|
hex = { version = "0.4.3" }
|
2024-07-17 22:44:05 +00:00
|
|
|
indxdb = { version = "0.5.0", optional = true }
|
2024-02-02 22:10:47 +00:00
|
|
|
ipnet = "2.9.0"
|
2024-05-08 11:00:54 +00:00
|
|
|
js = { version = "0.6.2", package = "rquickjs", features = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"array-buffer",
|
|
|
|
"bindgen",
|
|
|
|
"classes",
|
|
|
|
"futures",
|
|
|
|
"loader",
|
|
|
|
"macro",
|
|
|
|
"parallel",
|
|
|
|
"properties",
|
|
|
|
"rust-alloc",
|
2024-02-02 22:10:47 +00:00
|
|
|
], optional = true }
|
2024-08-07 11:38:02 +00:00
|
|
|
jsonwebtoken = "9.3.0"
|
2024-02-02 22:10:47 +00:00
|
|
|
lexicmp = "0.1.0"
|
2024-05-08 14:26:41 +00:00
|
|
|
linfa-linalg = "=0.1.0"
|
2024-02-02 22:10:47 +00:00
|
|
|
md-5 = "0.10.6"
|
|
|
|
nanoid = "0.4.0"
|
2024-05-10 07:12:07 +00:00
|
|
|
ndarray = { version = "=0.15.6" }
|
2024-05-08 14:26:41 +00:00
|
|
|
ndarray-stats = "=0.5.1"
|
|
|
|
num-traits = "0.2.18"
|
2024-02-02 22:10:47 +00:00
|
|
|
num_cpus = "1.16.0"
|
2024-07-29 15:39:38 +00:00
|
|
|
object_store = { version = "0.10.2", optional = false }
|
2024-02-02 22:10:47 +00:00
|
|
|
once_cell = "1.18.0"
|
|
|
|
pbkdf2 = { version = "0.12.2", features = ["simple"] }
|
2024-04-06 17:33:36 +00:00
|
|
|
phf = { version = "0.11.2", features = ["macros", "unicase"] }
|
2024-02-02 22:10:47 +00:00
|
|
|
pin-project-lite = "0.2.13"
|
2024-04-30 18:09:54 +00:00
|
|
|
quick_cache = "0.5.1"
|
2024-02-02 22:10:47 +00:00
|
|
|
radix_trie = { version = "0.2.1", features = ["serde"] }
|
|
|
|
rand = "0.8.5"
|
2024-07-12 14:40:30 +00:00
|
|
|
reblessive = { version = "0.4.0", features = ["tree"] }
|
2024-02-02 22:10:47 +00:00
|
|
|
regex = "1.10.2"
|
2024-04-03 09:54:12 +00:00
|
|
|
regex-syntax = { version = "0.8.2", optional = true, features = ["arbitrary"] }
|
2024-08-07 10:42:25 +00:00
|
|
|
reqwest = { version = "0.12.5", default-features = false, features = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"json",
|
|
|
|
"stream",
|
|
|
|
"multipart",
|
2024-02-02 22:10:47 +00:00
|
|
|
], optional = true }
|
2024-08-13 15:35:30 +00:00
|
|
|
revision = { version = "0.8.0", features = [
|
|
|
|
"chrono",
|
|
|
|
"geo",
|
|
|
|
"roaring",
|
|
|
|
"regex",
|
|
|
|
"rust_decimal",
|
|
|
|
"uuid",
|
|
|
|
] }
|
2024-04-17 18:56:08 +00:00
|
|
|
rmpv = "1.0.1"
|
2024-02-02 22:10:47 +00:00
|
|
|
roaring = { version = "0.10.2", features = ["serde"] }
|
|
|
|
rocksdb = { version = "0.21.0", features = ["lz4", "snappy"], optional = true }
|
|
|
|
rust_decimal = { version = "1.33.1", features = ["maths", "serde-str"] }
|
|
|
|
rust-stemmers = "1.2.0"
|
|
|
|
scrypt = "0.11.0"
|
|
|
|
semver = { version = "1.0.20", features = ["serde"] }
|
|
|
|
serde = { version = "1.0.193", features = ["derive"] }
|
|
|
|
serde_json = "1.0.108"
|
|
|
|
sha1 = "0.10.6"
|
|
|
|
sha2 = "0.10.8"
|
|
|
|
snap = "1.1.0"
|
|
|
|
storekey = "0.5.0"
|
2024-08-13 16:38:17 +00:00
|
|
|
subtle = "2.6"
|
2024-08-15 05:29:53 +00:00
|
|
|
surrealkv = { version = "0.3.3", optional = true }
|
2024-04-03 09:54:12 +00:00
|
|
|
surrealml = { version = "0.1.1", optional = true, package = "surrealml-core" }
|
2024-03-28 16:29:55 +00:00
|
|
|
tempfile = { version = "3.10.1", optional = true }
|
2024-02-02 22:10:47 +00:00
|
|
|
thiserror = "1.0.50"
|
2024-07-17 22:44:05 +00:00
|
|
|
tikv = { version = "0.3.0-surreal.1", default-features = false, package = "surrealdb-tikv-client", optional = true }
|
2024-02-02 22:10:47 +00:00
|
|
|
tracing = "0.1.40"
|
|
|
|
trice = "0.4.0"
|
|
|
|
ulid = { version = "1.1.0", features = ["serde"] }
|
2024-04-06 17:33:36 +00:00
|
|
|
unicase = "2.7.0"
|
2024-04-03 09:54:12 +00:00
|
|
|
url = "2.5.0"
|
2024-08-13 08:29:43 +00:00
|
|
|
castaway = "0.2.3"
|
|
|
|
serde-content = "0.1.0"
|
2024-02-02 22:10:47 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
criterion = { version = "0.5.1", features = ["async_tokio"] }
|
|
|
|
env_logger = "0.10.1"
|
2024-05-08 14:26:41 +00:00
|
|
|
flate2 = "1.0.28"
|
2024-02-02 22:10:47 +00:00
|
|
|
pprof = { version = "0.13.0", features = ["flamegraph", "criterion"] }
|
|
|
|
serial_test = "2.0.0"
|
|
|
|
temp-dir = "0.1.11"
|
|
|
|
test-log = { version = "0.2.13", features = ["trace"] }
|
2024-07-29 15:39:38 +00:00
|
|
|
time = { version = "0.3.36", features = ["serde"] }
|
2024-02-02 22:10:47 +00:00
|
|
|
tokio = { version = "1.34.0", features = ["macros", "sync", "rt-multi-thread"] }
|
|
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
2024-08-07 10:42:25 +00:00
|
|
|
wiremock = "0.6.0"
|
2024-02-02 22:10:47 +00:00
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
pharos = "0.5.3"
|
2024-04-03 09:54:12 +00:00
|
|
|
ring = { version = "0.17.7", features = ["wasm32_unknown_unknown_js"] }
|
|
|
|
tokio = { version = "1.34.0", default-features = false, features = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"rt",
|
|
|
|
"sync",
|
2024-04-03 09:54:12 +00:00
|
|
|
] }
|
2024-02-02 22:10:47 +00:00
|
|
|
uuid = { version = "1.6.1", features = ["serde", "js", "v4", "v7"] }
|
|
|
|
wasm-bindgen-futures = "0.4.39"
|
|
|
|
wasmtimer = { version = "0.2.0", default-features = false, features = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"tokio",
|
2024-02-02 22:10:47 +00:00
|
|
|
] }
|
|
|
|
ws_stream_wasm = "0.7.4"
|
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
|
|
tokio = { version = "1.34.0", default-features = false, features = [
|
2024-04-17 14:27:55 +00:00
|
|
|
"macros",
|
|
|
|
"io-util",
|
|
|
|
"io-std",
|
|
|
|
"fs",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"time",
|
|
|
|
"sync",
|
2024-02-02 22:10:47 +00:00
|
|
|
] }
|
2024-08-07 10:42:25 +00:00
|
|
|
tokio-tungstenite = { version = "0.21.0", optional = true }
|
2024-02-02 22:10:47 +00:00
|
|
|
uuid = { version = "1.6.1", features = ["serde", "v4", "v7"] }
|
2024-02-05 12:01:39 +00:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "surrealdb_core"
|