Skip to content

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

Merged
jprendes merged 1 commit intohyperlight-dev:mainfrom
jprendes:reexport-crates
Apr 17, 2026
Merged

Re-export guest types and error utilities from hyperlight_guest_bin#1383
jprendes merged 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
Copy link
Copy Markdown
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!

@jprendes jprendes merged commit e41799c into hyperlight-dev:main Apr 17, 2026
40 of 41 checks passed
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.

2 participants