Skip to content

Add wasm-runtime as a dependency and find it using cargo-metadata#410

Merged
jprendes merged 5 commits intohyperlight-dev:mainfrom
jprendes:runtime-as-lib
Mar 9, 2026
Merged

Add wasm-runtime as a dependency and find it using cargo-metadata#410
jprendes merged 5 commits intohyperlight-dev:mainfrom
jprendes:runtime-as-lib

Conversation

@jprendes
Copy link
Contributor

@jprendes jprendes commented Mar 9, 2026

This PR adds wasm-runtime as a dependency of hyperlight-wasm.
Then, for building it in the hyperlight-wasm buildscript, find its location using cargo metadata.

This PR has 2 main parts>

  • Split wasm-runtime into a lib that hyperlight-wasm can depend on (i.e., a lib that can fuild for x86_64-unknown-linux-gnu) and a binary that hyperlight can build.
  • Add wasm-runtime as a dependency, and modify the build script to find it.

Out of scope:

  • Making the wasm-runtime library useful outside of hyperlight uses (e.g., making it useful for native workflows like we did with hyperlight-js).
  • Making a native binary for wasm-runtime (this is a consecuence of the previous)

These are out of scope as currently the macros have baked in assumptions aobut hyperlight.

Remaining work (for other PRs)

  • Rename wasm-runtime -> hyperlight-wasm-runtime
  • remove vendor.tar from CI workflows and Justfile

jprendes added 4 commits March 9, 2026 12:06
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Copy link
Contributor

@dblnz dblnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Beside the other benefits, this change makes debugging static languages a lot simpler by having a predictable path for wasm_runtime binary that needs to be provided to GDB/LLDB.

@jprendes jprendes merged commit 28f7f92 into hyperlight-dev:main Mar 9, 2026
21 checks passed
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.

2 participants