You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the following items are publicly exported from hyperlight-host, and I believe many of them were never intended to be public, we should fix that.
For items that are not intended to be public, but are needed by macros, we should mark them as #[doc(hidden)], and ideally be moved to a properly named module, something like _private
Crossed out are the items I believe don't need to be public.
From the things I believe should be public, they live in the following modules:
func: 9 items, most supporting the HostFunction trait, the only other item is the Registerable trait. {HostFunction, ParameterValue, ReturnType, ReturnValue, ParameterTuple, Registerable, ResultType, SupportedParameterType, SupportedReturnType}
sandbox: 9 items, this is the most varied module. {config::SandboxConfiguration, initialized_multi_use::MultiUseSandbox, snapshot::Snapshot, uninitialized::GuestBlob, uninitialized::GuestEnvironment, uninitialized::UninitializedSandbox, uninitialized::GuestBinary, Callable, ExtraAllowedSyscall}
error: 1 item {HyperlightError}
:: (crate's root): 3 items, macros and Result {log_then_return, new_error, Result}
and one outlier, hypervisor::InterruptHandle, which arguably should belong to a different module, probably sandbox.
Activity
jprendes commentedon Aug 5, 2025
From the things I believe should be public, they live in the following modules:
func: 9 items, most supporting theHostFunctiontrait, the only other item is theRegisterabletrait.{HostFunction, ParameterValue, ReturnType, ReturnValue, ParameterTuple, Registerable, ResultType, SupportedParameterType, SupportedReturnType}sandbox: 9 items, this is the most varied module.{config::SandboxConfiguration, initialized_multi_use::MultiUseSandbox, snapshot::Snapshot, uninitialized::GuestBlob, uninitialized::GuestEnvironment, uninitialized::UninitializedSandbox, uninitialized::GuestBinary, Callable, ExtraAllowedSyscall}error: 1 item{HyperlightError}::(crate's root): 3 items, macros andResult{log_then_return, new_error, Result}and one outlier,
hypervisor::InterruptHandle, which arguably should belong to a different module, probablysandbox.jsturtevant commentedon Aug 20, 2025
There was a Suggestion that we mark these as depreciated, we use these internally so might need to add allows as well
simongdavies commentedon Mar 11, 2026
Linked to #1268
jsturtevant commentedon Jun 17, 2026
This is dependent on the changes in #1268