[package]
name = "reth-tasks"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
description = "Task management"

[lints]
workspace = true

[dependencies]
# async
tokio = { workspace = true, features = ["sync", "rt"] }
tracing-futures.workspace = true
futures-util = { workspace = true, features = ["std"] }

# metrics
reth-metrics.workspace = true
metrics.workspace = true

# misc
auto_impl.workspace = true
tracing.workspace = true
thiserror.workspace = true
dyn-clone.workspace = true

# feature `rayon`
rayon = { workspace = true, optional = true }
pin-project = { workspace = true, optional = true }

[dev-dependencies]
tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread", "time", "macros"] }

[features]
rayon = ["dep:rayon", "pin-project"]
