fixes in tests and examples

This commit is contained in:
Pat Hickey
2021-03-26 15:37:57 -07:00
parent af7030197d
commit ae4c5a9d7f
4 changed files with 4 additions and 7 deletions

View File

@@ -3,9 +3,8 @@
// You can execute this example with `cargo run --example linking`
use anyhow::Result;
use wasi_cap_std_sync::WasiCtxBuilder;
use wasmtime::*;
use wasmtime_wasi::Wasi;
use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi};
fn main() -> Result<()> {
let engine = Engine::default();

View File

@@ -4,9 +4,8 @@
// You can execute this example with `cargo run --example wasi`
use anyhow::Result;
use wasi_cap_std_sync::WasiCtxBuilder;
use wasmtime::*;
use wasmtime_wasi::Wasi;
use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi};
fn main() -> Result<()> {
tracing_subscriber::FmtSubscriber::builder()

View File

@@ -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() {

View File

@@ -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()?,
)