File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
tests/rust_guests/simpleguest/src Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,8 @@ limitations under the License.
2020extern crate alloc;
2121
2222// Modules
23- pub mod exit;
2423pub mod error;
25- // TODO(danbugs): Move this to hyperlight_guest_bin
26- pub mod memory;
24+ pub mod exit;
2725
2826pub mod guest_handle {
2927 pub mod handle;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ pub mod guest_function {
5151
5252pub mod guest_logger;
5353pub mod host_comm;
54+ pub mod memory;
5455
5556// === Globals ===
5657#[ global_allocator]
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ use core::mem::{align_of, size_of};
2020use core:: ptr;
2121
2222use hyperlight_common:: flatbuffer_wrappers:: guest_error:: ErrorCode ;
23-
24- use crate :: exit:: abort_with_code;
25-
26- extern crate alloc;
23+ use hyperlight_guest:: exit:: abort_with_code;
2724
2825/*
2926 C-wrappers for Rust's registered global allocator.
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ use hyperlight_common::flatbuffer_wrappers::util::get_flatbuffer_result;
4747use hyperlight_common:: mem:: PAGE_SIZE ;
4848use hyperlight_guest:: error:: { HyperlightGuestError , Result } ;
4949use hyperlight_guest:: exit:: { abort_with_code, abort_with_code_and_message} ;
50- use hyperlight_guest:: memory:: malloc;
5150use hyperlight_guest_bin:: guest_function:: definition:: GuestFunctionDefinition ;
5251use hyperlight_guest_bin:: guest_function:: register:: register_function;
5352use hyperlight_guest_bin:: host_comm:: { call_host_function, call_host_function_without_returning} ;
53+ use hyperlight_guest_bin:: memory:: malloc;
5454use hyperlight_guest_bin:: { guest_logger, MIN_STACK_ADDRESS } ;
5555use log:: { error, LevelFilter } ;
5656
You can’t perform that action at this time.
0 commit comments