[package]
name = "resolved_ts"
version = "0.0.1"
edition = "2021"
publish = false
license = "Apache-2.0"

[features]
tcmalloc = ["tikv/tcmalloc"]
jemalloc = ["tikv/jemalloc"]
mimalloc = ["tikv/mimalloc"]
snmalloc = ["tikv/snmalloc"]
portable = ["tikv/portable"]
sse = ["tikv/sse"]
mem-profiling = ["tikv/mem-profiling"]
failpoints = ["tikv/failpoints"]

[dependencies]
collections = { workspace = true }
concurrency_manager = { workspace = true }
engine_traits = { workspace = true }
fail = { workspace = true }
futures = { workspace = true }
grpcio = { workspace = true }
kvproto = { workspace = true }
lazy_static = { workspace = true }
log_wrappers = { workspace = true }
online_config = { workspace = true }
pd_client = { workspace = true }
prometheus = { workspace = true }
protobuf = { workspace = true }
raft = { workspace = true }
raftstore = { workspace = true }
rfstore = { workspace = true }
security = { workspace = true }
slog = { workspace = true }
slog-global = { workspace = true }
thiserror = { workspace = true }
tikv = { workspace = true }
tikv_util = { workspace = true }
tokio = { workspace = true }
txn_types = { workspace = true }
workspace-hack = { version = "0.1", path = "../../workspace-hack" }

[dev-dependencies]
tempfile = { workspace = true }
test_raftstore = { workspace = true }
test_sst_importer = { workspace = true }
test_util = { workspace = true }
tikv_kv = { workspace = true }

[[test]]
name = "integrations"
path = "tests/integrations/mod.rs"

[[test]]
name = "failpoints"
path = "tests/failpoints/mod.rs"
required-features = ["failpoints"]

[lints.rust]
# The check_leader api is not fully tests and currently not used, so we use a 
# custom flag to skip to tests.
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(NO_NEXT_GEN_COMPATIBLE)'] }
