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); }