feat: add world selection for multi-world WIT files#394
feat: add world selection for multi-world WIT files#394jsturtevant wants to merge 9 commits intomainfrom
Conversation
a6cbcbf to
99bb14e
Compare
|
@jprendes the build is failing on the sysprep root. I tried downgrading to cargo-hyperlight 0.1.6 and it didn't help. I Ideas what might be going on here? I don't see much in the error message that points me in the right direction. |
|
I changed cmd.status()
- .unwrap_or_else(|e| panic!("could not run cargo build wasm_runtime: {}", e));
+ .unwrap_or_else(|e| panic!("could not run cargo build wasm_runtime: {:?}", e));and now I got a more helpful error message |
|
It looks like |
Instead of using a shared memory region or a host function callback to provide host function definitions to the guest, the host now pushes the serialized definitions directly as a parameter to InitWasmRuntime. Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
rust_wasm_samples, hyperlight_wasm_macro, and component_sample were missing empty [workspace] tables in their Cargo.toml files. Without this, Cargo resolves to the main checkout's workspace root when run from a git worktree, causing 'believes it's in a workspace' errors. wasm_runtime already had this marker. Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
|
I will refresh this after #389 since it needs the last version of HL. I've also added a sample as a test case here. |
Support WIT_WORLD_NAME env var in hyperlight-wasm-macro to select a specific world from WIT files containing multiple worlds. Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
99bb14e to
a7cb892
Compare
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
|
I added an additional sample for this use case. I also moved all the samples to a structure similiar to HL guests. This had been driving me crazy for awhile so sorry for the big diff. I can do that as a followup if want but can also look at each commit. |
Support WIT_WORLD_NAME env var in hyperlight-wasm-macro to select a specific world from WIT files containing multiple worlds.