diff --git a/Cargo.toml b/Cargo.toml index 6d07849d9a..463713086a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ equihash = { version = "0.2", path = "components/equihash", default-features = f zcash_address = { version = "0.10", path = "components/zcash_address", default-features = false } zcash_client_backend = { version = "0.21", path = "zcash_client_backend" } zcash_encoding = { version = "0.3", path = "components/zcash_encoding", default-features = false } -zcash_keys = { version = "0.12", path = "zcash_keys" } +zcash_keys = { version = "0.12", path = "zcash_keys", default-features = false } zcash_protocol = { version = "0.7.2", path = "components/zcash_protocol", default-features = false } zip321 = { version = "0.6", path = "components/zip321" } diff --git a/zcash_client_backend/Cargo.toml b/zcash_client_backend/Cargo.toml index 716ab473b6..b87097c157 100644 --- a/zcash_client_backend/Cargo.toml +++ b/zcash_client_backend/Cargo.toml @@ -27,7 +27,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] zcash_address.workspace = true zcash_encoding.workspace = true -zcash_keys = { workspace = true, features = ["sapling"] } +zcash_keys = { workspace = true, features = ["std", "sapling"] } zcash_note_encryption.workspace = true zcash_primitives = { workspace = true, features = ["std", "circuits"] } zcash_protocol.workspace = true diff --git a/zcash_keys/CHANGELOG.md b/zcash_keys/CHANGELOG.md index 43e556bf01..dfcd895450 100644 --- a/zcash_keys/CHANGELOG.md +++ b/zcash_keys/CHANGELOG.md @@ -16,6 +16,8 @@ workspace. ### Changed - MSRV is now 1.85.1. - Migrated to `orchard 0.12`, `sapling-crypto 0.6`. +- The `std` feature flag now enables the equivalent flag on the dependencies + `orchard`, `sapling-crypto`, `zcash_transparent`, and `zcash_address`. ## [0.12.0] - 2025-10-13 diff --git a/zcash_keys/Cargo.toml b/zcash_keys/Cargo.toml index 11a7ddccab..0ee42bda5d 100644 --- a/zcash_keys/Cargo.toml +++ b/zcash_keys/Cargo.toml @@ -89,17 +89,25 @@ zcash_script.workspace = true [features] default = ["std"] -std = ["dep:document-features"] +std = [ + "dep:document-features", + "orchard?/std", + "sapling?/std", + "transparent/std", + "zcash_address/std", +] ## Enables use of transparent key parts and addresses transparent-inputs = [ - "dep:bip32", - "transparent/transparent-inputs", + "dep:bip32", + "transparent/transparent-inputs", ] ## Enables use of zcashd-derived secp256k1 secret key encodings. transparent-key-encoding = [ - "transparent-inputs", "dep:secp256k1", "dep:zeroize" + "transparent-inputs", + "dep:secp256k1", + "dep:zeroize", ] ## Enables use of Orchard key parts and addresses