forked from tikv/client-rust
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (69 loc) · 2.27 KB
/
Copy pathCargo.toml
File metadata and controls
77 lines (69 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[package]
name = "surrealdb-tikv-client"
version = "0.5.0"
keywords = ["TiKV", "KV", "distributed-systems"]
license = "Apache-2.0"
authors = ["The TiKV Project Authors"]
repository = "https://github.com/surrealdb/tikv-client"
description = "The Rust language implementation of TiKV client (SurrealDB fork)."
edition = "2021"
[features]
default = ["prometheus"]
prometheus = ["prometheus/push", "prometheus/process"]
# Enable integration tests with a running TiKV and PD instance.
# Use $PD_ADDRS, comma separated, to set the addresses the tests use.
integration-tests = []
[lib]
name = "tikv_client"
[workspace]
members = [
".",
"proto-build",
]
[dependencies]
async-recursion = "1.1"
async-trait = "0.1"
derive-new = "0.7"
either = "1.15"
fail = "0.5"
futures = "0.3"
log = "0.4"
pin-project = "1.1"
prometheus = { version = "0.14", default-features = false }
prost = "0.14"
rand = "0.9"
regex = "1"
semver = "1.0"
serde = "1.0"
serde_derive = "1.0"
take_mut = "0.2.2"
thiserror = "2"
tokio = { version = "1", features = ["sync", "rt-multi-thread", "macros"] }
tonic = { version = "0.14", features = ["tls-native-roots"] }
tonic-prost = "0.14"
# Upstream `tikv/client-rust`'s `[dev-dependencies]` block was much
# heavier (clap 2, env_logger, proptest, proptest-derive, reqwest,
# rstest, tempfile) because it served the CLI examples and the
# in-crate proptest derives — both of which were dropped during the
# SurrealDB fork's modernisation. What's left below is the strict
# minimum the `tests/` tree still needs to exercise the live-cluster
# integration suite against a TiKV cluster.
#
# `serial_test 3.x` replaces the previous 0.5 pin: the latter pulled
# in `parking_lot 0.11` / `instant` (RUSTSEC-2024-0384). 3.x drops
# both. The `#[serial]` attribute API has been stable across the bump.
[dev-dependencies]
env_logger = "0.11"
fail = { version = "0.5", features = ["failpoints"] }
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
serde_json = "1"
serial_test = "3"
tokio = { version = "1", features = ["sync", "rt-multi-thread", "macros"] }
[[test]]
name = "failpoint_tests"
path = "tests/failpoint_tests.rs"
required-features = ["fail/failpoints"]
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
required-features = ["integration-tests"]