| /wasmtime-44.0.1/benches/ |
| H A D | wasi.rs | 6 use wasmtime_wasi::{DirPerms, FilePerms, WasiCtx, p1::WasiP1Ctx}; 50 fn instantiate(wat: &[u8]) -> (Store<WasiP1Ctx>, TypedFunc<u64, u64>) { in instantiate() argument 63 fn wasi_context() -> WasiP1Ctx { in wasi_context()
|
| H A D | instantiation.rs | 9 use wasmtime_wasi::{WasiCtx, p1::WasiP1Ctx}; 11 fn store(engine: &Engine) -> Store<WasiP1Ctx> { in store() argument 16 fn instantiate(pre: &InstancePre<WasiP1Ctx>, engine: &Engine) -> Result<()> { in instantiate() argument
|
| /wasmtime-44.0.1/examples/wasip1-async/ |
| H A D | main.rs | 13 use wasmtime_wasi::p1::{self, WasiP1Ctx}; 20 let mut linker: Linker<WasiP1Ctx> = Linker::new(&engine); in main()
|
| /wasmtime-44.0.1/crates/wasi-nn/tests/exec/ |
| H A D | witx.rs | 6 use wasmtime_wasi::p1::WasiP1Ctx; 29 wasi: WasiP1Ctx,
|
| /wasmtime-44.0.1/examples/tokio/ |
| H A D | main.rs | 5 use wasmtime_wasi::{WasiCtx, p1::WasiP1Ctx}; 42 linker: Arc<Linker<WasiP1Ctx>>,
|
| /wasmtime-44.0.1/crates/wizer/benches/ |
| H A D | regex.rs | 7 use wasmtime_wasi::p1::WasiP1Ctx; 9 fn run_iter(linker: &wasmtime::Linker<WasiP1Ctx>, module: &wasmtime::Module) { in run_iter() argument
|
| H A D | uap.rs | 7 use wasmtime_wasi::p1::WasiP1Ctx; 9 fn run_iter(linker: &wasmtime::Linker<WasiP1Ctx>, module: &wasmtime::Module) { in run_iter() argument
|
| /wasmtime-44.0.1/crates/bench-api/src/ |
| H A D | lib.rs | 146 use wasmtime_wasi::{DirPerms, FilePerms, I32Exit, WasiCtx, p1::WasiP1Ctx}; 395 make_wasi_cx: Box<dyn FnMut() -> Result<WasiP1Ctx>>, 403 wasi: WasiP1Ctx, 420 make_wasi_cx: impl FnMut() -> Result<WasiP1Ctx> + 'static, in new()
|
| /wasmtime-44.0.1/crates/wasi/src/ |
| H A D | ctx.rs | 481 pub fn build_p1(&mut self) -> crate::p1::WasiP1Ctx { in build_p1() argument 483 crate::p1::WasiP1Ctx::new(wasi) in build_p1()
|
| H A D | p1.rs | 142 pub struct WasiP1Ctx { struct 149 impl WasiP1Ctx { argument 232 impl WasiView for WasiP1Ctx { implementation 358 fn new(host: &mut WasiP1Ctx) -> Result<Self, types::Error> { in new() 485 view: &'a mut WasiP1Ctx, 577 impl WasiP1Ctx { implementation 783 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_async() 849 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_sync() 1185 impl wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiP1Ctx { implementation 2590 ctx: &'a mut WasiP1Ctx, in poll_oneoff()
|
| H A D | p0.rs | 7 use crate::p1::WasiP1Ctx; 14 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_async() 21 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_sync()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | wasi.rs | 14 use wasmtime_wasi::p1::WasiP1Ctx; 41 pub fn into_wasi_ctx(mut self) -> Result<WasiP1Ctx> { in into_wasi_ctx() argument
|
| H A D | store.rs | 86 pub(crate) wasi: Option<wasmtime_wasi::p1::WasiP1Ctx>,
|
| /wasmtime-44.0.1/crates/wasi/tests/all/ |
| H A D | p1.rs | 7 use wasmtime_wasi::p1::{WasiP1Ctx, add_to_linker_async}; 13 let mut linker = Linker::<Ctx<WasiP1Ctx>>::new(&engine); in run()
|
| /wasmtime-44.0.1/crates/wizer/tests/all/ |
| H A D | tests.rs | 21 fn store() -> Result<Store<p1::WasiP1Ctx>> { in store() 29 async fn instantiate(store: &mut Store<p1::WasiP1Ctx>, module: &Module) -> Result<Instance> { in instantiate() argument
|
| /wasmtime-44.0.1/src/commands/ |
| H A D | run.rs | 1485 wasip1_ctx: Option<Arc<Mutex<wasmtime_wasi::p1::WasiP1Ctx>>>, 1508 pub(crate) fn wasip1_ctx(&mut self) -> &mut wasmtime_wasi::p1::WasiP1Ctx { in wasip1_ctx() argument
|