Skip to content

Conversation

@danbugs
Copy link
Contributor

@danbugs danbugs commented May 2, 2025

This region was unused. Ever since we ported our code from C# to Rust, if there's an error calling a host function, the host will just error out instead of returning to the guest, which is probably more sensible.

Note: Just like #453 , this PR is also part of the effort of breaking #297 into more digestible bits.

@danbugs danbugs added the kind/refactor For PRs that restructure or remove code without adding new functionality. label May 2, 2025
@danbugs danbugs requested a review from ludfjig May 2, 2025 22:06
ludfjig
ludfjig previously approved these changes May 2, 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.

LGTM. Can we remove our dependency on serde now? I don't know what we use serde for

…d host error region

This region was unused. Ever since we ported our code from C# to Rust, if there's an error calling a host function,
the host will just error out instead of returning to the guest, which is probably more sensible.

Signed-off-by: danbugs <[email protected]>
@danbugs danbugs force-pushed the remove-host-exception-region branch from 83e65ad to a327f50 Compare May 2, 2025 22:31
ludfjig
ludfjig previously approved these changes May 2, 2025
@danbugs danbugs force-pushed the remove-host-exception-region branch from a327f50 to 6091ff7 Compare May 2, 2025 23:52
…toml

- serde*
- lazy_static

I also removed HyperlightHostError, which is now unused.

Signed-off-by: danbugs <[email protected]>
@danbugs danbugs force-pushed the remove-host-exception-region branch from 6091ff7 to d1a90c1 Compare May 3, 2025 00:09
@danbugs danbugs merged commit d1a90c1 into hyperlight-dev:main May 5, 2025
32 of 49 checks passed
@danbugs danbugs deleted the remove-host-exception-region branch May 5, 2025 17:31
danbugs added a commit to danbugs/hyperlight that referenced this pull request May 6, 2025
Removed cfg options that became unused after PRs hyperlight-dev#451 , hyperlight-dev#453 , and hyperlight-dev#457 merged.

Signed-off-by: danbugs <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor For PRs that restructure or remove code without adding new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants