wasi-cap-std-async is better named wasi-tokio

This commit is contained in:
Pat Hickey
2021-04-14 14:02:50 -07:00
parent c691d1864e
commit 0127676621
7 changed files with 21 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ use wasmtime::{Config, Engine, Linker, Module, Store};
// For this example we want to use the async version of wasmtime_wasi.
// Notably, this version of wasi uses a scheduler that will async yield
// when sleeping in `poll_oneoff`.
use wasmtime_wasi::async_::{Wasi, WasiCtxBuilder};
use wasmtime_wasi::tokio::{Wasi, WasiCtxBuilder};
#[tokio::main]
async fn main() -> Result<(), Error> {