Skip to content

Commit cd4657b

Browse files
authored
test-util: Use wasmtime_environ::error instead of anyhow (#12209)
* fix Cargo.toml deps * test-util: Use `wasmtime_environ::error` instead of `anyhow`
1 parent 0f62967 commit cd4657b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

crates/test-util/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ arbitrary = { workspace = true, optional = true }
2121
quote = { workspace = true, optional = true }
2222
proc-macro2 = { workspace = true, optional = true }
2323
wasmtime-component-util = { workspace = true, optional = true }
24-
wasmtime-environ = { workspace = true, optional = true }
24+
wasmtime-environ = { workspace = true }
2525
target-lexicon = { workspace = true, optional = true }
2626
env_logger = { workspace = true, optional = true }
2727
wasmtime = { workspace = true, optional = true }
@@ -46,7 +46,6 @@ wast = [
4646
'dep:serde_derive',
4747
]
4848
wasmtime-wast = [
49-
'dep:wasmtime-environ',
5049
'wast',
5150
'dep:wasmtime',
5251
'wasmtime/cranelift',

crates/test-util/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use anyhow::Result;
21
use arbitrary::Arbitrary;
32
use std::mem::MaybeUninit;
43
use wasmtime::component::__internal::{
54
CanonicalAbiInfo, InstanceType, InterfaceType, LiftContext, LowerContext,
65
};
76
use wasmtime::component::{ComponentNamedList, ComponentType, Func, Lift, Lower, TypedFunc, Val};
87
use wasmtime::{AsContextMut, Config, Engine};
8+
use wasmtime_environ::error::Result;
99

1010
pub trait TypedFuncExt<P, R> {
1111
fn call_and_post_return(&self, store: impl AsContextMut<Data: Send>, params: P) -> Result<R>;

crates/test-util/src/wast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use anyhow::{Context, Result};
21
use serde::de::DeserializeOwned;
32
use serde_derive::Deserialize;
43
use std::fmt;
54
use std::fs;
65
use std::path::Path;
76
use std::path::PathBuf;
7+
use wasmtime_environ::error::{Context, Result};
88

99
/// Limits for running wast tests.
1010
///

0 commit comments

Comments
 (0)