We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1afe83 commit dd1a305Copy full SHA for dd1a305
crates/components-runtime/src/context.rs
@@ -4,7 +4,7 @@ use wasmtime::{
4
component::{Component, Linker, ResourceTable},
5
Engine, Store,
6
};
7
-use wasmtime_wasi::{WasiCtx, WasiView};
+use wasmtime_wasi::{IoView, WasiCtx, WasiView};
8
9
use crate::config::{ComponentsConfiguration, DataCollectionComponents};
10
use crate::consent_mapping::{ConsentMapping, ConsentMappingPre};
@@ -179,12 +179,13 @@ impl HostState {
179
}
180
181
182
+impl IoView for HostState {
183
+ fn table(&mut self) -> &mut ResourceTable {
184
+ &mut self.table
185
+ }
186
+}
187
impl WasiView for HostState {
188
fn ctx(&mut self) -> &mut WasiCtx {
189
&mut self.ctx
190
-
- fn table(&mut self) -> &mut ResourceTable {
- &mut self.table
- }
191
0 commit comments