Skip to content

Commit dd1a305

Browse files
committed
fix(components-runtime): update for wasmtime-wasi API change
1 parent b1afe83 commit dd1a305

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

crates/components-runtime/src/context.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use wasmtime::{
44
component::{Component, Linker, ResourceTable},
55
Engine, Store,
66
};
7-
use wasmtime_wasi::{WasiCtx, WasiView};
7+
use wasmtime_wasi::{IoView, WasiCtx, WasiView};
88

99
use crate::config::{ComponentsConfiguration, DataCollectionComponents};
1010
use crate::consent_mapping::{ConsentMapping, ConsentMappingPre};
@@ -179,12 +179,13 @@ impl HostState {
179179
}
180180
}
181181

182+
impl IoView for HostState {
183+
fn table(&mut self) -> &mut ResourceTable {
184+
&mut self.table
185+
}
186+
}
182187
impl WasiView for HostState {
183188
fn ctx(&mut self) -> &mut WasiCtx {
184189
&mut self.ctx
185190
}
186-
187-
fn table(&mut self) -> &mut ResourceTable {
188-
&mut self.table
189-
}
190191
}

0 commit comments

Comments
 (0)