nostrdb-rs

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

commit d0b9cec0143ad4644bbcb915ce56ff89f9b327c5
parent 3b248c027f62b5b40b1393a15dc27002dbbe30e8
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 24 Jun 2025 11:55:21 -0700

build: add NDB_LOG=1 to enable nostrdb logging

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mbuild.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/build.rs b/build.rs @@ -104,6 +104,10 @@ fn main() { build.flag("-O1"); } + if env::var("NDB_LOG").is_ok() { + build.flag("-DNDB_LOG"); + } + // Print out the path to the compiled library let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); println!("cargo:rustc-link-search=native={}", out_path.display());