Cargo Features

zebra-chain has no features set by default.

[dependencies]
zebra-chain = { version = "1.0.0-beta.42", features = ["json-conversion", "async-error", "getblocktemplate-rpcs", "shielded-scan", "internal-miner", "elasticsearch", "proptest-impl", "bench"] }
json-conversion = serde_json

Production features that activate extra functionality
Consensus-critical conversion from JSON to Zcash types

Affects height::json_conversion

async-error = tokio

Async error handling convenience traits

Affects task::future

getblocktemplate-rpcs

Mining RPC support

Affects transaction::builder

shielded-scan = zcash_client_backend

Experimental shielded scanning support

Affects primitives::viewing_key

internal-miner

Experimental internal miner support TODO: Internal miner feature functionality was removed at https://github.com/ZcashFoundation/zebra/issues/8180 See what was removed at https://github.com/ZcashFoundation/zebra/blob/v1.5.1/zebra-chain/Cargo.toml#L38-L43 Restore support when conditions are met. https://github.com/ZcashFoundation/zebra/issues/8183

elasticsearch

Experimental elasticsearch support

proptest-impl = proptest, proptest-derive, rand, rand_chacha, zebra-test

Test-only features

Enables tracing of tokio

Production feature async-error and testing feature proptest-impl

bench = zebra-test

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde_json json-conversion?

Enables serde_json

Production feature json-conversion

tokio async-error? proptest-impl?
zcash_client_backend shielded-scan?

Enables zcash_client_backend ^0.14.0

Experimental feature shielded-scan

proptest-derive proptest-impl?
rand proptest-impl?
rand_chacha proptest-impl?
zebra-test bench? proptest-impl?
proptest proptest-impl?

Enables proptest

Optional testing dependencies