fixes in tests and examples
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
use anyhow::Result;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
|
||||
use wasi_cap_std_sync::WasiCtxBuilder;
|
||||
use wasmtime::*;
|
||||
use wasmtime_wasi::Wasi;
|
||||
use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi};
|
||||
|
||||
#[test]
|
||||
fn async_required() {
|
||||
|
||||
@@ -512,7 +512,7 @@ fn parse_dwarf_info() -> Result<()> {
|
||||
let mut linker = Linker::new(&store);
|
||||
wasmtime_wasi::Wasi::new(
|
||||
&store,
|
||||
wasi_cap_std_sync::WasiCtxBuilder::new()
|
||||
wasmtime_wasi::sync::WasiCtxBuilder::new()
|
||||
.inherit_stdio()
|
||||
.build()?,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user