We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d014f commit 0cc1d10Copy full SHA for 0cc1d10
1 file changed
src/hyperlight_wasm/build.rs
@@ -46,6 +46,11 @@ fn get_wasm_runtime_path() -> PathBuf {
46
47
println!("cargo::rerun-if-changed={}", tar_path.display());
48
49
+ // If the vendor.tar file exists, extract it to the OUT_DIR/vendor directory
50
+ // and return the wasm_runtime directory inside it.
51
+ // This is useful for vendoring the wasm_runtime crate in a release build, since crates.io
52
+ // does not allow vendoring folders with Cargo.toml files (i.e., other crates).
53
+ // The vendor.tar file is expected to be in the same directory as this build script.
54
if tar_path.exists() {
55
let out_dir = env::var_os("OUT_DIR").unwrap();
56
let out_dir = PathBuf::from(out_dir);
0 commit comments