secp256k1-sys: Remove unused flags in build.rs

This commit is contained in:
Elichai Turkel 2022-11-24 13:38:40 +02:00
parent fb45ae4de9
commit 7d3dc354d7
No known key found for this signature in database
GPG Key ID: 9383CDE9E8E66A7F
1 changed files with 1 additions and 5 deletions

View File

@ -35,11 +35,7 @@ fn main() {
.define("SECP256K1_API", Some(""))
.define("ENABLE_MODULE_ECDH", Some("1"))
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"))
// TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
.define("USE_NUM_NONE", Some("1"))
.define("USE_FIELD_INV_BUILTIN", Some("1"))
.define("USE_SCALAR_INV_BUILTIN", Some("1"));
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"));
if cfg!(feature = "lowmemory") {
base_config.define("ECMULT_WINDOW_SIZE", Some("4")); // A low-enough value to consume negligible memory