Skip to content

Various fixes/refactors to hyperlight_wasm_aot - #579

Open
syntactically wants to merge 2 commits into
mainfrom
lm/aot-fixes
Open

syntactically wants to merge 2 commits into
mainfrom
lm/aot-fixes

Conversation

@syntactically

Copy link
Copy Markdown
Member

No description provided.

`hyperlight-wasm-aot check-wasmtime-version` attempts to report the
version of wasmtime that it was compiled with, in order to make it
clear what version it is testing the provided file with. Previously,
it used a `cargo metadata` invocation at runtime to attempt to obtain
this information from the cargo crate dependency graph. Unfortunately,
this only appeared to be working because we test running it in the
normal cargo source tree: `cargo metadata` looks up the metadata of
the directory in which the command is run at runtime.

This commit replaces that cargo metadata invocation by one in
a new hyperlight-wasm-aot build.rs, and compiles the relevant
dependency versions directly into the executable.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
Previously, both of the hyperlight-wasm-aot commands had completely
divergent implementations for the wasmtime LTS and latest wasmtime
cases, even though the core logic of both was precisely the same. This
was probably mostly due to the annoyance of having to deal with the
different types (e.g. `wasmtime::Config` vs `wasmtime_lts::Config`)
throughout, making it difficult to provide abstractions which work on
either version.

This commit adds some macros to make that easier, and converges the
code paths.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
@syntactically
syntactically added this pull request to stack #580 November 17, 2026 19:32
Base automatically changed from lm/coherency-fix to main November 18, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant