Skip to content

Conversation

@jprendes
Copy link
Contributor

This PR prepares hyperlight-wasm to be publishable by vendoring the dependency on wasm_runtime.

  • Added a make-vendor-tar recipe in Justfile to create a vendor.tar for bundling dependencies (wasm_runtime and hyperlight_wasm_macro)
  • Updated build.rs to unpack the vendor.tar file during the build process. This allows us to distribute the dependent crate as part of hyperlight-wasm
  • Removed the usage of wasmtime-platform.h
  • Updated Cargo.toml to include metadata required by crates.io (description, license, repository)
  • Added the vendor.tar file to the include list for publication.

TODO (in another PR): Update CI workflows with the steps to publish the hyperlight-wasm crate.

  • create the new branch
  • crate the tarball and remove the .gitignore file
  • commit changes to release branch
  • verify that vendor.tar is blundled (with cargo package -p hyperlight-wasm --list)
  • do the cargo publish

@jprendes jprendes force-pushed the vendor-wasm-runtime branch 3 times, most recently from b10666f to 8458ad8 Compare June 25, 2025 16:58
ludfjig
ludfjig previously approved these changes Jun 25, 2025
Copy link
Contributor

@ludfjig ludfjig left a comment

Choose a reason for hiding this comment

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

Looks very reasonable to me

jsturtevant
jsturtevant previously approved these changes Jun 25, 2025
Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

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

couple small quesitons otherwise lgtm

@jprendes jprendes dismissed stale reviews from jsturtevant and ludfjig via f2d014f June 25, 2025 23:14
@jprendes jprendes force-pushed the vendor-wasm-runtime branch from 8458ad8 to f2d014f Compare June 25, 2025 23:14
@jprendes jprendes requested review from jsturtevant and ludfjig June 26, 2025 18:34
@jprendes jprendes merged commit 5924d1d into hyperlight-dev:main Jun 26, 2025
25 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.

3 participants