fixes in tests and examples
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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