nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

commit 2dadf6bd0f5861ad91ded819d3523729e455efc0
parent 5e184e2b53766a84f1d5486bd26055d3c23321c5
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 14 Dec 2023 19:45:08 -0800

build: fix weird release build issue

Diffstat:
M.gitignore | 1+
MCargo.toml | 2+-
Mbuild.rs | 12++++++------
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ .direnv/ +/nostrdb Cargo.lock target/ diff --git a/Cargo.toml b/Cargo.toml @@ -6,7 +6,7 @@ readme = "README.md" version = "0.1.0" edition = "2021" build = "build.rs" -include = ["../deps", "src", "Cargo.toml", "build.rs", "../*.c", "../*.h"] +license = "GPL-3.0-or-later" [build-dependencies] cc = "1.0" diff --git a/build.rs b/build.rs @@ -15,12 +15,12 @@ fn secp256k1_build() { //.define("SECP256K1_API", Some("")) .define("ENABLE_MODULE_ECDH", Some("1")) .define("ENABLE_MODULE_SCHNORRSIG", Some("1")) - .define("ENABLE_MODULE_EXTRAKEYS", Some("1")) - //.define("ENABLE_MODULE_ELLSWIFT", Some("0")) - // upstream sometimes introduces calls to printf, which we cannot compile - // with WASM due to its lack of libc. printf is never necessary and we can - // just #define it away. - .define("printf(...)", Some("")); + .define("ENABLE_MODULE_EXTRAKEYS", Some("1")); + //.define("ENABLE_MODULE_ELLSWIFT", Some("1")) + // upstream sometimes introduces calls to printf, which we cannot compile + // with WASM due to its lack of libc. printf is never necessary and we can + // just #define it away. + //.define("printf(...)", Some("")); //if cfg!(feature = "lowmemory") { // base_config.define("ECMULT_WINDOW_SIZE", Some("4")); // A low-enough value to consume negligible memory