Skip to content

fix(hyperlight-component-util): Fix emit_hl_unmarshal_value to return a tuple for boolean values #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Mossaka
Copy link

@Mossaka Mossaka commented Apr 26, 2025

This updates the emit_hl_unmarshal_value function to return a tuple
containing the boolean value and a constant 1, which fixes the following
build error if a function that has a bool as its argument is called:

error[E0610]: `bool` is a primitive type and therefore doesn't have fields

Signed-off-by: Jiaxiao (mossaka) Zhou duibao55328@gmail.com

syntactically and others added 8 commits March 25, 2025 19:11
This ensures that setting an execution timeout of 0 disables execution
timeouts entirely. This is temporary, as we intend to remove the
wall-clock timeout feature from Hyperlight entirely in the near
future.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
This is useful to allow host-side code to work on both core Hyperlight
sandboxes and wrapped sandboxes like Hyperlight Wasm.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
This is useful to allow host-side code to work on both core Hyperlight
sandboxes and wrapped sandboxes like Hyperlight Wasm.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
This commit adds a general implementation of WebAssembly Component
Model type elaboration, closely derived from the formal
specification. It also adds a number of functions which can generate
Rust binding code from appropriately-structured (roughly: WIT-like)
component types.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
This adds a proc-macro crate that exposes the bindings code generation
from hyperlight_component_util as a macro suitable for using WIT to
define a hyperlight host<->guest interface.

Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
… a tuple for boolean values

This updates the emit_hl_unmarshal_value function to return a tuple
containing the boolean value and a constant 1, which fixes the following
build error if a function that has a bool as its argument is called:

```
error[E0610]: `bool` is a primitive type and therefore doesn't have fields
```

Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
@Mossaka Mossaka changed the title fix(hyperlight-component-util): Fix emit_hl_unmarshal_value to return a tuple for boolean values fix(hyperlight-component-util): Fix emit_hl_unmarshal_value to return a tuple for boolean values Apr 26, 2025
@syntactically syntactically force-pushed the hyperlight-component-macro branch 10 times, most recently from 6c48fd8 to 3143032 Compare June 6, 2025 19:01
@danbugs danbugs deleted the branch hyperlight-dev:hyperlight-component-macro June 6, 2025 22:17
@danbugs danbugs closed this Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants