Skip to content

Re-export guest types and error utilities from hyperlight_guest_bin#1383

Open
jprendes wants to merge 1 commit intohyperlight-dev:mainfrom
jprendes:reexport-crates
Open

Re-export guest types and error utilities from hyperlight_guest_bin#1383
jprendes wants to merge 1 commit intohyperlight-dev:mainfrom
jprendes:reexport-crates

Conversation

@jprendes
Copy link
Copy Markdown
Contributor

Summary

This PR re-exports common types and error utilities from hyperlight_guest_bin, allowing users to build guest binaries with a single dependency on hyperlight_guest_bin instead of requiring an explicit dependency on both hyperlight_guest and hyperlight_guest_bin.

Changes

  • Re-export ErrorCode from hyperlight_guest::error
  • Add new types module to hyperlight_guest that re-exports FunctionCall, ParameterType, ParameterValue, ReturnType, and ReturnValue
  • Add new error module to hyperlight_guest_bin that re-exports error types and the bail/ensure macros

Motivation

Simplifies the dependency graph for guest binary authors by allowing them to depend only on hyperlight_guest_bin.

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
@jprendes jprendes added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant