A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Migrate `crates/bench-api` to `wasmtime::error` instead of `anyhow` (#12258)
Nick Fitzgeralddbbae4403005
diff --git a/Cargo.lock b/Cargo.lockindex 17a6f0809f..de2265d1df 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -4586,7 +4586,6 @@ dependencies = [name = "wasmtime-bench-api"version = "42.0.0"dependencies = [- "anyhow","cap-std","clap","shuffling-allocator",diff --git a/crates/bench-api/Cargo.toml b/crates/bench-api/Cargo.tomlindex b88b7d1399..60fa5a24b9 100644--- a/crates/bench-api/Cargo.toml+++ b/crates/bench-api/Cargo.toml@@ -19,7 +19,6 @@ crate-type = ["cdylib"]doctest = false[dependencies]-anyhow = { workspace = true }shuffling-allocator = { version = "1.1.1", optional = true }target-lexicon = { workspace = true }wasmtime = { workspace = true, default-features = true, features = ["winch", "pulley"] }diff --git a/crates/bench-api/src/lib.rs b/crates/bench-api/src/lib.rsindex 86c99c8c98..addebceee1 100644--- a/crates/bench-api/src/lib.rs+++ b/crates/bench-api/src/lib.rs@@ -136,12 +136,11 @@mod unsafe_send_sync;use crate::unsafe_send_sync::UnsafeSendSync;-use anyhow::{Context, Result};use clap::Parser;use std::os::raw::{c_int, c_void};use std::slice;use std::{env, path::PathBuf};-use wasmtime::{Engine, Instance, Linker, Module, Store};+use wasmtime::{Engine, Instance, Linker, Module, Result, Store, error::Context as _};use wasmtime_cli_flags::CommonOptions;use wasmtime_wasi::cli::{InputFile, OutputFile};use wasmtime_wasi::{DirPerms, FilePerms, I32Exit, WasiCtx, p1::WasiP1Ctx};