fixes in tests and examples
This commit is contained in:
@@ -3,9 +3,8 @@
|
|||||||
// You can execute this example with `cargo run --example linking`
|
// You can execute this example with `cargo run --example linking`
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use wasi_cap_std_sync::WasiCtxBuilder;
|
|
||||||
use wasmtime::*;
|
use wasmtime::*;
|
||||||
use wasmtime_wasi::Wasi;
|
use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let engine = Engine::default();
|
let engine = Engine::default();
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
// You can execute this example with `cargo run --example wasi`
|
// You can execute this example with `cargo run --example wasi`
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use wasi_cap_std_sync::WasiCtxBuilder;
|
|
||||||
use wasmtime::*;
|
use wasmtime::*;
|
||||||
use wasmtime_wasi::Wasi;
|
use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
tracing_subscriber::FmtSubscriber::builder()
|
tracing_subscriber::FmtSubscriber::builder()
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
|
use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
|
||||||
use wasi_cap_std_sync::WasiCtxBuilder;
|
|
||||||
use wasmtime::*;
|
use wasmtime::*;
|
||||||
use wasmtime_wasi::Wasi;
|
use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn async_required() {
|
fn async_required() {
|
||||||
|
|||||||
@@ -512,7 +512,7 @@ fn parse_dwarf_info() -> Result<()> {
|
|||||||
let mut linker = Linker::new(&store);
|
let mut linker = Linker::new(&store);
|
||||||
wasmtime_wasi::Wasi::new(
|
wasmtime_wasi::Wasi::new(
|
||||||
&store,
|
&store,
|
||||||
wasi_cap_std_sync::WasiCtxBuilder::new()
|
wasmtime_wasi::sync::WasiCtxBuilder::new()
|
||||||
.inherit_stdio()
|
.inherit_stdio()
|
||||||
.build()?,
|
.build()?,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user