From 95555f15632ec8e3a02840ca0c965c8bd416913b Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 7 Jul 2024 12:32:25 -0400 Subject: [PATCH] set `cargo_manifest_dir` Signed-off-by: strawberry --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 0cd26e4..22f41b8 100644 --- a/build.rs +++ b/build.rs @@ -201,5 +201,9 @@ fn main() { } } + // Allow dependent crates to locate the sources and output directory of + // this crate. Notably, this allows a dependent crate to locate the RocksDB + // sources and built archive artifacts provided by this crate. + println!("cargo:cargo_manifest_dir={}", env::var("CARGO_MANIFEST_DIR").unwrap()); println!("cargo:out_dir={}", out_dir); }