Skip to content

Commit 2482c57

Browse files
committed
Re-export host functions from hyperlight host package
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 4e0ea22 commit 2482c57

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/hyperlight_host/src/func/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,18 @@ pub(crate) mod host_functions;
2929

3030
/// Re-export for `HostFunction` trait
3131
pub use host_functions::{HostFunction, Registerable};
32+
/// Re-export for `ParameterType` enum
33+
pub use hyperlight_common::flatbuffer_wrappers::function_types::ParameterType;
3234
/// Re-export for `ParameterValue` enum
3335
pub use hyperlight_common::flatbuffer_wrappers::function_types::ParameterValue;
3436
/// Re-export for `ReturnType` enum
3537
pub use hyperlight_common::flatbuffer_wrappers::function_types::ReturnType;
3638
/// Re-export for `ReturnValue` enum
3739
pub use hyperlight_common::flatbuffer_wrappers::function_types::ReturnValue;
40+
/// Re-export for `HostFunctionDefinition`
41+
pub use hyperlight_common::flatbuffer_wrappers::host_function_definition::HostFunctionDefinition;
42+
/// Re-export for `HostFunctionDetails`
43+
pub use hyperlight_common::flatbuffer_wrappers::host_function_details::HostFunctionDetails;
3844
pub use hyperlight_common::func::{
3945
ParameterTuple, ResultType, SupportedParameterType, SupportedReturnType,
4046
};

src/hyperlight_host/src/sandbox/host_funcs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ use std::io::{IsTerminal, Write};
2020
use hyperlight_common::flatbuffer_wrappers::function_types::{
2121
ParameterType, ParameterValue, ReturnType, ReturnValue,
2222
};
23-
use hyperlight_common::flatbuffer_wrappers::host_function_definition::HostFunctionDefinition;
24-
use hyperlight_common::flatbuffer_wrappers::host_function_details::HostFunctionDetails;
2523
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
2624
use tracing::{Span, instrument};
2725

26+
use hyperlight_common::flatbuffer_wrappers::host_function_definition::HostFunctionDefinition;
27+
use hyperlight_common::flatbuffer_wrappers::host_function_details::HostFunctionDetails;
2828
use crate::HyperlightError::HostFunctionNotFound;
2929
use crate::Result;
3030
use crate::func::host_functions::TypeErasedHostFunction;

0 commit comments

Comments
 (0)