A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Migrate test utils to `wasmtime::error` (#12272)
Nick Fitzgerald162fe0f8e240
diff --git a/Cargo.lock b/Cargo.lockindex 1fb8f16066..97cc7e7923 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -5041,7 +5041,6 @@ dependencies = [name = "wasmtime-test-util"version = "42.0.0"dependencies = [- "anyhow","arbitrary","arbtest","env_logger 0.11.5",diff --git a/crates/test-util/Cargo.toml b/crates/test-util/Cargo.tomlindex 36b2b31a2c..b0073ef039 100644--- a/crates/test-util/Cargo.toml+++ b/crates/test-util/Cargo.toml@@ -13,7 +13,6 @@ repository = "https://github.com/bytecodealliance/wasmtime"workspace = true[dependencies]-anyhow = { workspace = true, optional = true }serde = { workspace = true, optional = true }serde_derive = { workspace = true, optional = true }toml = { workspace = true, optional = true }@@ -41,7 +40,6 @@ arbtest = { workspace = true }[features]wast = ['dep:serde',- 'dep:anyhow','dep:toml','dep:serde_derive',]@@ -57,8 +55,6 @@ wasmtime-wast = ['dep:target-lexicon',]component = [- 'dep:anyhow',- 'dep:anyhow','arbitrary/derive','wast','dep:env_logger',diff --git a/crates/test-util/src/component.rs b/crates/test-util/src/component.rsindex aa921af1f2..06ea28f4bc 100644--- a/crates/test-util/src/component.rs+++ b/crates/test-util/src/component.rs@@ -5,7 +5,7 @@ use wasmtime::component::__internal::{};use wasmtime::component::{ComponentNamedList, ComponentType, Func, Lift, Lower, TypedFunc, Val};use wasmtime::{AsContextMut, Config, Engine};-use wasmtime_environ::error::Result;+use wasmtime_environ::prelude::*;pub trait TypedFuncExt<P, R> {fn call_and_post_return(&self, store: impl AsContextMut<Data: Send>, params: P) -> Result<R>;diff --git a/crates/test-util/src/wast.rs b/crates/test-util/src/wast.rsindex 26939fae33..f02c8bba58 100644--- a/crates/test-util/src/wast.rs+++ b/crates/test-util/src/wast.rs@@ -4,7 +4,7 @@ use std::fmt;use std::fs;use std::path::Path;use std::path::PathBuf;-use wasmtime_environ::error::{Context, Result};+use wasmtime_environ::prelude::*;/// Limits for running wast tests.///