Cargo Features

[dependencies]
zcash_primitives = { version = "0.15.0", default-features = false, features = ["multicore", "transparent-inputs", "temporary-zcashd", "test-dependencies"] }
default = multicore

The multicore feature is set by default whenever zcash_primitives is added without default-features = false somewhere in the dependency tree.

multicore default

Enables multithreading support for creating proofs.

Enables multicore of orchard and sapling-crypto

transparent-inputs

Enables spending transparent notes with the transaction builder.

Enables hdwallet

  • Transparent inputs
    • Error type exposed

and ripemd

- Transparent inputs

and secp256k1 ^0.26

  • SecretKey and PublicKey types exposed

Affects legacy::keys, builder::TransparentInputInfo

temporary-zcashd

A temporary feature flag that exposes granular APIs needed by zcashd. These APIs should not be relied upon and will be removed in a future release.

Affects sapling::temporary_zcashd_read_spend_v4, sapling::temporary_zcashd_read_output_v4, sapling::temporary_zcashd_write_output_v4, sapling::temporary_zcashd_read_v4_components, sapling::temporary_zcashd_write_v4_components

test-dependencies

Exposes APIs that are useful for testing, such as proptest strategies.

Enables test-dependencies of orchard, test-dependencies of sapling-crypto and zcash_protocol and proptest

- Test dependencies

Affects components::amount.testing