[package]
name = "near-async"
version.workspace = true
authors.workspace = true
edition.workspace = true
description = "This crate contains the async helpers specific for nearcore"
repository.workspace = true
license.workspace = true
publish = true

[lints]
workspace = true

[dependencies]
crossbeam-channel.workspace = true
futures.workspace = true
parking_lot.workspace = true
rand = { workspace = true, optional = true }
serde.workspace = true
serde_json.workspace = true
time.workspace = true
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
tokio-util.workspace = true
tracing.workspace = true

near-o11y.workspace = true
near-async-derive.workspace = true
near-time = { workspace = true, features = ["clock"] }

[features]
actor_instrumentation_testing = ["rand"]

[dev-dependencies]
tokio-util.workspace = true
criterion.workspace = true

[[bench]]
name = "instrumentation"
harness = false
