Merge rust-bitcoin/rust-secp256k1#431: Make global-context-less-secure actually enable the global context (fixup for #407)

c1bb316675 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: 1cf2429b12/src/context.rs (L51))

ACKs for top commit:
  apoelstra:
    ACK c1bb316675

Tree-SHA512: edc7b4916b359a0696cc25f498bc52ad340f981ad6b01b83b68966d6179200bac6acb96f5480157e24c605b5552bdd7b6eb8770bc9a2c5734da3df11c021fb5b
This commit is contained in:
Andrew Poelstra 2022-03-28 14:00:54 +00:00
commit ae985dd191
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ global-context = ["std"]
# (If you are sure the `rand-std` feature will not be enabled, e.g. # (If you are sure the `rand-std` feature will not be enabled, e.g.
# if you are doing a no-std build, then this feature does nothing # if you are doing a no-std build, then this feature does nothing
# and is not necessary.) # and is not necessary.)
global-context-less-secure = [] global-context-less-secure = ["global-context"]
[dependencies] [dependencies]
secp256k1-sys = { version = "0.5.0", default-features = false, path = "./secp256k1-sys" } secp256k1-sys = { version = "0.5.0", default-features = false, path = "./secp256k1-sys" }