Skip to content

Commit a69f744

Browse files
committed
remove EvolvableSandbox trait
Signed-off-by: Jorge Prendes <[email protected]>
1 parent 96c775c commit a69f744

File tree

24 files changed

+7
-44
lines changed

24 files changed

+7
-44
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ It is followed by an example of a simple guest application using the Hyperlight
3535
```rust
3636
use std::thread;
3737

38-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
3938
use hyperlight_host::sandbox_state::transition::Noop;
4039
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
4140

fuzz/fuzz_targets/guest_call.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use std::sync::{Mutex, OnceLock};
2020

2121
use hyperlight_host::func::{ParameterValue, ReturnType};
2222
use hyperlight_host::sandbox::uninitialized::GuestBinary;
23-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2423
use hyperlight_host::sandbox_state::transition::Noop;
2524
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
2625
use hyperlight_testing::simple_guest_for_fuzzing_as_string;

fuzz/fuzz_targets/host_call.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use std::sync::{Mutex, OnceLock};
2020

2121
use hyperlight_host::func::{ParameterValue, ReturnType};
2222
use hyperlight_host::sandbox::uninitialized::GuestBinary;
23-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2423
use hyperlight_host::sandbox_state::transition::Noop;
2524
use hyperlight_host::{HyperlightError, MultiUseSandbox, UninitializedSandbox};
2625
use hyperlight_testing::simple_guest_for_fuzzing_as_string;

fuzz/fuzz_targets/host_print.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use std::sync::{Mutex, OnceLock};
44

55
use hyperlight_host::sandbox::uninitialized::GuestBinary;
6-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
76
use hyperlight_host::sandbox_state::transition::Noop;
87
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
98
use hyperlight_testing::simple_guest_for_fuzzing_as_string;

src/hyperlight_component_util/src/host.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ fn emit_component<'a, 'b, 'c>(s: &'c mut State<'a, 'b>, wn: WitName, ct: &'c Com
347347
pub(crate) rt: ::std::sync::Arc<::std::sync::Mutex<#rtsid<T>>>,
348348
}
349349
pub(crate) fn register_host_functions<I: #ns::#import_trait + ::std::marker::Send + 'static, S: ::hyperlight_host::func::Registerable>(sb: &mut S, i: I) -> ::std::sync::Arc<::std::sync::Mutex<#rtsid<I>>> {
350-
use ::hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
351350
let rts = ::std::sync::Arc::new(::std::sync::Mutex::new(#rtsid::new()));
352351
let #import_id = ::std::sync::Arc::new(::std::sync::Mutex::new(i));
353352
#(#imports)*
@@ -361,7 +360,7 @@ fn emit_component<'a, 'b, 'c>(s: &'c mut State<'a, 'b>, wn: WitName, ct: &'c Com
361360
fn instantiate<I: #ns::#import_trait + ::std::marker::Send + 'static>(mut self, i: I) -> Self::Exports<I> {
362361
let rts = register_host_functions(&mut self, i);
363362
let noop = ::core::default::Default::default();
364-
let sb = ::hyperlight_host::sandbox_state::sandbox::EvolvableSandbox::evolve(self, noop).unwrap();
363+
let sb = self.evolve(noop).unwrap();
365364
#wrapper_name {
366365
sb,
367366
rt: rts,

src/hyperlight_host/benches/benchmarks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use hyperlight_host::GuestBinary;
1919
use hyperlight_host::sandbox::{
2020
Callable, MultiUseSandbox, SandboxConfiguration, UninitializedSandbox,
2121
};
22-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2322
use hyperlight_host::sandbox_state::transition::Noop;
2423
use hyperlight_testing::simple_guest_as_string;
2524

src/hyperlight_host/examples/func_ctx/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ limitations under the License.
1515
*/
1616

1717
use hyperlight_host::sandbox::{MultiUseSandbox, UninitializedSandbox};
18-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
1918
use hyperlight_host::sandbox_state::transition::Noop;
2019
use hyperlight_host::{GuestBinary, Result};
2120
use hyperlight_testing::simple_guest_as_string;

src/hyperlight_host/examples/guest-debugging/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use std::thread;
1919
use hyperlight_host::sandbox::SandboxConfiguration;
2020
#[cfg(gdb)]
2121
use hyperlight_host::sandbox::config::DebugInfo;
22-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2322
use hyperlight_host::sandbox_state::transition::Noop;
2423
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
2524

src/hyperlight_host/examples/hello-world/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ limitations under the License.
1616
#![allow(clippy::disallowed_macros)]
1717
use std::thread;
1818

19-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2019
use hyperlight_host::sandbox_state::transition::Noop;
2120
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
2221

src/hyperlight_host/examples/logging/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ extern crate hyperlight_host;
1919
use std::sync::{Arc, Barrier};
2020

2121
use hyperlight_host::sandbox::uninitialized::UninitializedSandbox;
22-
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2322
use hyperlight_host::sandbox_state::transition::Noop;
2423
use hyperlight_host::{GuestBinary, MultiUseSandbox, Result};
2524
use hyperlight_testing::simple_guest_as_string;

0 commit comments

Comments
 (0)