wasi-cap-std-async is better named wasi-tokio
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user