[package]
description = "Substrate offchain workers"
name = "sc-offchain"
version = "22.1.0-dev.2"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
array-bytes = "4.1"
bytes = "1.1"
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
fnv = "1.0.6"
futures = "0.3.21"
futures-timer = "3.0.2"
hyper = { version = "0.14.16", features = ["stream", "http2"] }
hyper-rustls = { version = "0.24.0", features = ["http2"] }
libp2p = "0.51.3"
num_cpus = "1.13"
once_cell = "1.8"
parking_lot = "0.12.1"
rand = "0.8.5"
threadpool = "1.7"
tracing = "0.1.29"
sc-client-api = { version = "21.1.0-dev.2", path = "../api" }
sc-network = { version = "0.28.0-dev.2", path = "../network" }
sc-utils = { version = "7.1.0-dev.2", path = "../utils" }
sp-api = { version = "19.1.0-dev.2", path = "../../primitives/api" }
sp-core = { version = "21.1.0-dev.2", path = "../../primitives/core" }
sp-offchain = { version = "19.1.0-dev.2", path = "../../primitives/offchain" }
sp-runtime = { version = "24.1.0-dev.2", path = "../../primitives/runtime" }

[dev-dependencies]
lazy_static = "1.4.0"
tokio = "1.22.0"
sc-block-builder = { path = "../block-builder" }
sc-client-db = { default-features = true, path = "../db" }
sc-transaction-pool = { path = "../transaction-pool" }
sc-transaction-pool-api = { path = "../transaction-pool/api" }
sp-consensus = { path = "../../primitives/consensus/common" }
sp-tracing = { path = "../../primitives/tracing" }
substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }

[features]
default = []
