# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.80.1" name = "surrealdb-beta" version = "2.0.2" authors = ["Tobie Morgan Hitchcock "] build = "build.rs" publish = true autobins = false autoexamples = false autotests = false autobenches = false description = "A beta release of the surrealdb crate" homepage = "https://github.com/surrealdb/surrealdb" documentation = "https://docs.rs/surrealdb/" readme = "CARGO.md" keywords = [ "database", "embedded-database", "key-value", "key-value-store", "kv-store", ] categories = [ "database-implementations", "data-structures", "embedded", ] license-file = "LICENSE" repository = "https://github.com/surrealdb/surrealdb" resolver = "2" [package.metadata.docs.rs] features = [ "protocol-ws", "protocol-http", "kv-mem", "kv-rocksdb", "rustls", "native-tls", "http", "scripting", ] rustdoc-args = [ "--cfg", "docsrs", ] targets = [] [lib] name = "surrealdb" path = "src/lib.rs" bench = false [[example]] name = "concurrency" path = "examples/concurrency/main.rs" [[example]] name = "fetch" path = "examples/fetch/main.rs" [[example]] name = "live" path = "examples/live/main.rs" [[example]] name = "query" path = "examples/query/main.rs" [[example]] name = "select" path = "examples/select/main.rs" [[example]] name = "transaction" path = "examples/transaction/main.rs" [[example]] name = "version" path = "examples/version/main.rs" [[test]] name = "access" path = "tests/access.rs" [[test]] name = "alter" path = "tests/alter.rs" [[test]] name = "api" path = "tests/api.rs" [[test]] name = "cache" path = "tests/cache.rs" [[test]] name = "cast" path = "tests/cast.rs" [[test]] name = "changefeeds" path = "tests/changefeeds.rs" [[test]] name = "closure" path = "tests/closure.rs" [[test]] name = "compare" path = "tests/compare.rs" [[test]] name = "complex" path = "tests/complex.rs" [[test]] name = "create" path = "tests/create.rs" [[test]] name = "datetimes" path = "tests/datetimes.rs" [[test]] name = "define" path = "tests/define.rs" [[test]] name = "delete" path = "tests/delete.rs" [[test]] name = "escape" path = "tests/escape.rs" [[test]] name = "expression" path = "tests/expression.rs" [[test]] name = "fetch" path = "tests/fetch.rs" [[test]] name = "field" path = "tests/field.rs" [[test]] name = "foreach" path = "tests/foreach.rs" [[test]] name = "function" path = "tests/function.rs" [[test]] name = "future" path = "tests/future.rs" [[test]] name = "geometry" path = "tests/geometry.rs" [[test]] name = "group" path = "tests/group.rs" [[test]] name = "helpers" path = "tests/helpers.rs" [[test]] name = "idiom" path = "tests/idiom.rs" [[test]] name = "info" path = "tests/info.rs" [[test]] name = "insert" path = "tests/insert.rs" [[test]] name = "matches" path = "tests/matches.rs" [[test]] name = "merge" path = "tests/merge.rs" [[test]] name = "model" path = "tests/model.rs" [[test]] name = "option" path = "tests/option.rs" [[test]] name = "param" path = "tests/param.rs" [[test]] name = "parse" path = "tests/parse.rs" [[test]] name = "planner" path = "tests/planner.rs" [[test]] name = "query" path = "tests/query.rs" [[test]] name = "range" path = "tests/range.rs" [[test]] name = "rebuild" path = "tests/rebuild.rs" [[test]] name = "relate" path = "tests/relate.rs" [[test]] name = "remove" path = "tests/remove.rs" [[test]] name = "return" path = "tests/return.rs" [[test]] name = "script" path = "tests/script.rs" [[test]] name = "select" path = "tests/select.rs" [[test]] name = "set" path = "tests/set.rs" [[test]] name = "strict" path = "tests/strict.rs" [[test]] name = "subquery" path = "tests/subquery.rs" [[test]] name = "table" path = "tests/table.rs" [[test]] name = "throw" path = "tests/throw.rs" [[test]] name = "timeout" path = "tests/timeout.rs" [[test]] name = "transaction" path = "tests/transaction.rs" [[test]] name = "typing" path = "tests/typing.rs" [[test]] name = "update" path = "tests/update.rs" [[test]] name = "upsert" path = "tests/upsert.rs" [[test]] name = "util" path = "tests/util.rs" [[test]] name = "vector" path = "tests/vector.rs" [[test]] name = "yuse" path = "tests/yuse.rs" [[bench]] name = "executor" path = "benches/executor.rs" harness = false [[bench]] name = "hash_trie_btree" path = "benches/hash_trie_btree.rs" harness = false [[bench]] name = "hashset_vs_vector" path = "benches/hashset_vs_vector.rs" harness = false [[bench]] name = "index_btree" path = "benches/index_btree.rs" harness = false [[bench]] name = "index_hnsw" path = "benches/index_hnsw.rs" harness = false [[bench]] name = "index_mtree" path = "benches/index_mtree.rs" harness = false [[bench]] name = "move_vs_clone" path = "benches/move_vs_clone.rs" harness = false [[bench]] name = "parser" path = "benches/parser.rs" harness = false [[bench]] name = "processor" path = "benches/processor.rs" harness = false [[bench]] name = "sdb" path = "benches/sdb.rs" harness = false [dependencies.arrayvec] version = "=0.7.4" [dependencies.bincode] version = "1.3.3" [dependencies.channel] version = "1.9.0" package = "async-channel" [dependencies.chrono] version = "0.4.38" features = ["serde"] [dependencies.dmp] version = "0.2.0" [dependencies.futures] version = "0.3.30" [dependencies.geo] version = "0.28.0" features = ["use-serde"] [dependencies.indexmap] version = "2.1.0" features = ["serde"] [dependencies.native-tls] version = "0.2.11" optional = true [dependencies.path-clean] version = "1.0.1" [dependencies.reblessive] version = "0.4.0" features = ["tree"] [dependencies.reqwest] version = "0.12.7" features = [ "json", "multipart", "stream", ] optional = true default-features = false [dependencies.revision] version = "0.10.0" features = [ "chrono", "geo", "roaring", "regex", "rust_decimal", "uuid", ] [dependencies.rust_decimal] version = "1.36.0" features = [ "maths", "serde-str", ] [dependencies.rustls] version = "0.23.12" features = [ "ring", "logging", "std", "tls12", ] optional = true default-features = false [dependencies.rustls-pki-types] version = "1.7.0" features = ["web"] [dependencies.semver] version = "1.0.20" features = ["serde"] [dependencies.serde] version = "1.0.209" features = ["derive"] [dependencies.serde-content] version = "0.1.0" [dependencies.serde_json] version = "1.0.127" [dependencies.surrealdb-core] version = "=2.0.2" default-features = false package = "surrealdb-core-beta" [dependencies.thiserror] version = "1.0.63" [dependencies.tokio-util] version = "0.7.11" features = ["compat"] optional = true [dependencies.tracing] version = "0.1.40" [dependencies.trice] version = "0.4.0" optional = true [dependencies.url] version = "2.5.0" [dev-dependencies.ciborium] version = "0.2.1" [dev-dependencies.criterion] version = "0.5.1" features = ["async_tokio"] [dev-dependencies.env_logger] version = "0.10.1" [dev-dependencies.flate2] version = "1.0.28" [dev-dependencies.hashbrown] version = "0.14.5" [dev-dependencies.pprof] version = "0.13.0" features = [ "flamegraph", "criterion", ] [dev-dependencies.radix_trie] version = "0.2.1" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.regex] version = "1.10.6" [dev-dependencies.serial_test] version = "2.0.0" [dev-dependencies.temp-dir] version = "0.1.11" [dev-dependencies.test-log] version = "0.2.13" features = ["trace"] [dev-dependencies.time] version = "0.3.36" features = ["serde"] [dev-dependencies.tokio] version = "1.40.0" features = [ "macros", "sync", "rt-multi-thread", ] [dev-dependencies.tracing-subscriber] version = "0.3.18" features = ["env-filter"] [dev-dependencies.ulid] version = "1.1.0" features = ["serde"] [dev-dependencies.wiremock] version = "0.6.0" [features] arbitrary = ["surrealdb-core/arbitrary"] default = [ "protocol-ws", "rustls", ] http = ["surrealdb-core/http"] jwks = ["surrealdb-core/jwks"] kv-fdb = [ "surrealdb-core/kv-fdb", "tokio/time", ] kv-fdb-7_1 = ["surrealdb-core/kv-fdb-7_1"] kv-fdb-7_3 = ["surrealdb-core/kv-fdb-7_3"] kv-indxdb = ["surrealdb-core/kv-indxdb"] kv-mem = [ "surrealdb-core/kv-mem", "tokio/time", ] kv-rocksdb = [ "surrealdb-core/kv-rocksdb", "tokio/time", ] kv-surrealcs = [ "surrealdb-core/kv-surrealcs", "tokio/time", ] kv-surrealkv = [ "surrealdb-core/kv-surrealkv", "tokio/time", ] kv-tikv = [ "surrealdb-core/kv-tikv", "tokio/time", ] ml = ["surrealdb-core/ml"] native-tls = [ "dep:native-tls", "reqwest?/native-tls", "tokio-tungstenite?/native-tls", ] protocol-http = [ "dep:reqwest", "dep:tokio-util", ] protocol-ws = [ "dep:tokio-tungstenite", "dep:trice", "tokio/time", ] rustls = [ "dep:rustls", "reqwest?/rustls-tls", "tokio-tungstenite?/rustls-tls-webpki-roots", ] scripting = ["surrealdb-core/scripting"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio] version = "1.40.0" features = [ "macros", "io-util", "io-std", "fs", "rt-multi-thread", "time", "sync", ] default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite] version = "0.23.1" features = ["url"] optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.uuid] version = "1.10.0" features = [ "serde", "v4", "v7", ] [target.'cfg(target_arch = "wasm32")'.dependencies.pharos] version = "0.5.3" [target.'cfg(target_arch = "wasm32")'.dependencies.ring] version = "0.17.7" features = ["wasm32_unknown_unknown_js"] [target.'cfg(target_arch = "wasm32")'.dependencies.tokio] version = "1.40.0" features = [ "rt", "sync", ] default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.uuid] version = "1.10.0" features = [ "serde", "js", "v4", "v7", ] [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures] version = "0.4.39" [target.'cfg(target_arch = "wasm32")'.dependencies.wasmtimer] version = "0.2.0" features = ["tokio"] default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.ws_stream_wasm] version = "0.7.4" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(storage)", "cfg(surrealdb_unstable)", ]