set cargo_manifest_dir

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-07-07 12:32:25 -04:00
parent 91dc4bde42
commit 95555f1563

View file

@ -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); println!("cargo:out_dir={}", out_dir);
} }