Skip to content

Commit

Permalink
chore: Remove sys feature gate on WasiRuntime::engine
Browse files Browse the repository at this point in the history
No longer necessary due to Wasmer unification
  • Loading branch information
theduke committed Mar 20, 2023
1 parent 465da0a commit 10482c3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/wasi/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ where
fn task_manager(&self) -> &Arc<dyn VirtualTaskManager>;

/// Get a [`wasmer::Engine`] for module compilation.
#[cfg(feature = "sys")]
fn engine(&self) -> Option<wasmer::Engine> {
None
}
Expand Down Expand Up @@ -91,7 +90,6 @@ pub struct PluggableRuntime {
pub rt: Arc<dyn VirtualTaskManager>,
pub networking: DynVirtualNetworking,
pub http_client: Option<DynHttpClient>,
#[cfg(feature = "sys")]
pub engine: Option<wasmer::Engine>,
#[derivative(Debug = "ignore")]
pub tty: Option<Arc<dyn TtyBridge + Send + Sync>>,
Expand Down Expand Up @@ -121,7 +119,6 @@ impl PluggableRuntime {
rt,
networking,
http_client,
#[cfg(feature = "sys")]
engine: None,
tty: None,
}
Expand All @@ -134,7 +131,6 @@ impl PluggableRuntime {
self.networking = Arc::new(net)
}

#[cfg(feature = "sys")]
pub fn set_engine(&mut self, engine: Option<wasmer::Engine>) {
self.engine = engine;
}
Expand Down Expand Up @@ -169,7 +165,6 @@ impl WasiRuntime for PluggableRuntime {
self.http_client.as_ref()
}

#[cfg(feature = "sys")]
fn engine(&self) -> Option<wasmer::Engine> {
self.engine.clone()
}
Expand Down

0 comments on commit 10482c3

Please sign in to comment.