A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
wasmtime-winch: Use `wasmtime_environ::error` instead of `anyhow` (#12205)
Nick Fitzgerald0f62967f470b
diff --git a/Cargo.lock b/Cargo.lockindex 8ea984d78c..404df84276 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -4923,7 +4923,6 @@ dependencies = [name = "wasmtime-internal-winch"version = "41.0.0"dependencies = [- "anyhow","cranelift-codegen","gimli 0.32.3","log",diff --git a/crates/winch/Cargo.toml b/crates/winch/Cargo.tomlindex 5a37c7541b..3febbbbb8a 100644--- a/crates/winch/Cargo.toml+++ b/crates/winch/Cargo.toml@@ -15,7 +15,6 @@ workspace = truewinch-codegen = { workspace = true }target-lexicon = { workspace = true }wasmtime-environ = { workspace = true }-anyhow = { workspace = true }object = { workspace = true, features = ['std'] }cranelift-codegen = { workspace = true }wasmtime-cranelift = { workspace = true }diff --git a/crates/winch/src/builder.rs b/crates/winch/src/builder.rsindex 30669d6d6f..e91d43e459 100644--- a/crates/winch/src/builder.rs+++ b/crates/winch/src/builder.rs@@ -1,8 +1,8 @@use crate::compiler::Compiler;-use anyhow::{Result, bail};use std::sync::Arc;use target_lexicon::Triple;use wasmtime_cranelift::isa_builder::IsaBuilder;+use wasmtime_environ::error::{Result, bail};use wasmtime_environ::{CompilerBuilder, Setting, Tunables};use winch_codegen::{TargetIsa, isa};diff --git a/crates/winch/src/compiler.rs b/crates/winch/src/compiler.rsindex 906a987235..3939c26ff7 100644--- a/crates/winch/src/compiler.rs+++ b/crates/winch/src/compiler.rs@@ -1,4 +1,3 @@-use anyhow::Result;use cranelift_codegen::isa::unwind::UnwindInfoKind;use object::write::{Object, SymbolId};use std::any::Any;@@ -8,6 +7,7 @@ use wasmparser::FuncValidatorAllocations;use wasmtime_cranelift::CompiledFunction;#[cfg(feature = "component-model")]use wasmtime_environ::component::ComponentTranslation;+use wasmtime_environ::error::Result;use wasmtime_environ::{CompileError, CompiledFunctionBody, DefinedFuncIndex, FuncKey, FunctionBodyData, FunctionLoc,ModuleTranslation, ModuleTypesBuilder, PrimaryMap, StaticModuleIndex, Tunables, VMOffsets,