From aa7610831582551bffaa274e947bf5fea1d96252 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Tue, 27 May 2025 08:25:40 -0300 Subject: [PATCH] bitcoin: secp256k1 global-context feature re-export Often we want to have the global-context feature in secp256k1 without having to add manually the secp256k1 dependency and enabling the global-context feature. Having the ability to do that directly from bitcoin without having to add secp256k1 and do the whole tango of tightly coupling the two dependecy versions together, e.g. bitcoin 0.32.x and secp256k1 0.29.x would be really nice and would also simplify a lot code maintainability for anyone who depends on bitcoin. This needs to be backported to 0.32.x, which I'll gladly do as well. --- bitcoin/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index 39547f023..f6bff55c9 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -20,6 +20,7 @@ std = ["base58/std", "bech32/std", "hashes/std", "hex/std", "internals/std", "io rand-std = ["secp256k1/rand", "std"] rand = ["secp256k1/rand"] serde = ["base64", "dep:serde", "hashes/serde", "internals/serde", "primitives/serde", "secp256k1/serde", "units/serde"] +secp-global-context = ["secp256k1/global-context"] secp-lowmemory = ["secp256k1/lowmemory"] secp-recovery = ["secp256k1/recovery"] arbitrary = ["dep:arbitrary", "units/arbitrary", "primitives/arbitrary"]