Skip to content

Commit ae985dd

Browse files
committed
Merge #431: Make global-context-less-secure actually enable the global context (fixup for #407)
c1bb316 Make global-context-less-secure actually enable the global context (Elichai Turkel) Pull request description: In #407 we restored the `global-context-less-secure` feature, but it didn't actually do anything because #385 changed all the cfg checks on the whole module to depend on `global-context`, so we need to enable `global-context` in order to make that module compile. so before all this, users could enable *just* `global-context-less-secure` without enabling the `global-context`, and after this PR it will behave the same. (this will not enable the randomization because of: https://github.com/rust-bitcoin/rust-secp256k1/blob/1cf2429b12ff06a04a5c882f2f5d918042629660/src/context.rs#L51) ACKs for top commit: apoelstra: ACK c1bb316 Tree-SHA512: edc7b4916b359a0696cc25f498bc52ad340f981ad6b01b83b68966d6179200bac6acb96f5480157e24c605b5552bdd7b6eb8770bc9a2c5734da3df11c021fb5b
2 parents 1cf2429 + c1bb316 commit ae985dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ global-context = ["std"]
3434
# (If you are sure the `rand-std` feature will not be enabled, e.g.
3535
# if you are doing a no-std build, then this feature does nothing
3636
# and is not necessary.)
37-
global-context-less-secure = []
37+
global-context-less-secure = ["global-context"]
3838

3939
[dependencies]
4040
secp256k1-sys = { version = "0.5.0", default-features = false, path = "./secp256k1-sys" }

0 commit comments

Comments
 (0)