[package] name = "sc-service" version = "0.46.0" authors.workspace = true edition.workspace = true license = "GPL-3.0-or-later WITH Classpath-exception-2.0" homepage.workspace = true repository.workspace = true description = "Substrate service. Starts a thread that spins up the network, client, and extrinsic pool. Manages communication between them." readme = "README.md" [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [features] default = ["rocksdb"] # The RocksDB feature activates the RocksDB database backend. If it is not activated, and you pass # a path to a database, an error will be produced at runtime. rocksdb = ["sc-client-db/rocksdb"] # exposes the client type test-helpers = [] runtime-benchmarks = [ "sc-client-db/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] [dependencies] jsonrpsee = { features = ["server"], workspace = true } thiserror = { workspace = true } futures = { workspace = true } rand = { workspace = true, default-features = true } parking_lot = { workspace = true, default-features = true } log = { workspace = true, default-features = true } futures-timer = { workspace = true } exit-future = { workspace = true } pin-project = { workspace = true } serde = { workspace = true, default-features = true } serde_json = { workspace = true, default-features = true } sc-keystore.workspace = true sc-keystore.default-features = true sp-runtime.workspace = true sp-runtime.default-features = true sp-trie.workspace = true sp-trie.default-features = true sp-externalities.workspace = true sp-externalities.default-features = true sc-utils.workspace = true sc-utils.default-features = true sp-version.workspace = true sp-version.default-features = true sp-blockchain.workspace = true sp-blockchain.default-features = true sp-core.workspace = true sp-core.default-features = true sp-keystore.workspace = true sp-keystore.default-features = true sp-session.workspace = true sp-session.default-features = true sp-state-machine.workspace = true sp-state-machine.default-features = true sp-consensus.workspace = true sp-consensus.default-features = true sc-consensus.workspace = true sc-consensus.default-features = true sp-storage.workspace = true sp-storage.default-features = true sc-network.workspace = true sc-network.default-features = true sc-network-common.workspace = true sc-network-common.default-features = true sc-network-light.workspace = true sc-network-light.default-features = true sc-network-sync.workspace = true sc-network-sync.default-features = true sc-network-types.workspace = true sc-network-types.default-features = true sc-network-transactions.workspace = true sc-network-transactions.default-features = true sc-chain-spec.workspace = true sc-chain-spec.default-features = true sc-client-api.workspace = true sc-client-api.default-features = true sp-api.workspace = true sp-api.default-features = true sc-client-db.workspace = true codec = { workspace = true, default-features = true } sc-executor.workspace = true sc-executor.default-features = true sc-transaction-pool.workspace = true sc-transaction-pool.default-features = true sp-transaction-pool.workspace = true sp-transaction-pool.default-features = true sc-transaction-pool-api.workspace = true sc-transaction-pool-api.default-features = true sp-transaction-storage-proof.workspace = true sp-transaction-storage-proof.default-features = true sc-rpc-server.workspace = true sc-rpc-server.default-features = true sc-rpc.workspace = true sc-rpc.default-features = true sc-rpc-spec-v2.workspace = true sc-rpc-spec-v2.default-features = true sc-informant.workspace = true sc-informant.default-features = true sc-telemetry.workspace = true sc-telemetry.default-features = true prometheus-endpoint.workspace = true prometheus-endpoint.default-features = true sc-tracing.workspace = true sc-tracing.default-features = true sc-sysinfo.workspace = true sc-sysinfo.default-features = true tracing = { workspace = true, default-features = true } tracing-futures = { workspace = true } async-trait = { workspace = true } tokio = { features = ["parking_lot", "rt-multi-thread", "time"], workspace = true, default-features = true } tempfile = { workspace = true } directories = { workspace = true } static_init = { workspace = true } schnellru = { workspace = true } [dev-dependencies] substrate-test-runtime-client = { path = "../../test-utils/runtime/client" } substrate-test-runtime = { path = "../../test-utils/runtime" }