Cargo Features
[dependencies]
zcash_primitives = { version = "0.26.4", default-features = false, features = ["std", "zip-233", "circuits", "multicore", "transparent-inputs", "temporary-zcashd", "test-dependencies", "expensive-tests", "no-expensive-tests", "non-standard-fees"] }
- default = circuits, multicore, std
-
These default features are set whenever
zcash_primitivesis added withoutsomewhere in the dependency tree.default-features = false - std default = document-features
-
Enables std of zcash_transparent
- Transparent protocol
and std of orchard ^0.11, redjubjub, and sapling-crypto ^0.5
redjubjub:
- Shielded protocols
- zip-233
-
Affects
data::zip_0233… - circuits default
-
Enables creating proofs
Enables circuit of orchard ^0.11 and sapling-crypto ^0.5
- multicore default
-
Enables multithreading support for creating proofs.
Enables multicore of orchard ^0.11 and sapling-crypto ^0.5
- transparent-inputs
-
Enables spending transparent notes with the transaction builder.
Enables transparent-inputs of zcash_transparent and secp256k1 ^0.29
SecretKeyandPublicKeytypes exposed
and secp256k1-ffi of bip32
- Transparent inputs
Errortype exposed
Affects
zcash_primitives::legacy.keys… - 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
propteststrategies.Enables test-dependencies of sapling-crypto ^0.5, zcash_transparent, and zcash_protocol and proptest >=1, <1.7
- Test dependencies
and test-dependencies of incrementalmerkletree and orchard ^0.11
incrementalmerkletree:
- Note Commitment Trees
- expensive-tests
-
A feature used to isolate tests that are expensive to run. Test-only.
- no-expensive-tests
-
A feature used to ensure that expensive tests do not run when running with --all-features
- non-standard-fees
-
A feature that provides
FeeRuleimplementations and constructors for non-standard fees.Affects
fees::fixed…
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.
- document-features std
-
Enables document-features
- Documentation