A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Migrate wasi-tls-nativetls to `wasmtime::error` (#12273)
Nick Fitzgerald8646e3b8e790
diff --git a/Cargo.lock b/Cargo.lockindex 84e7b108b8..5455a8920c 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -5212,7 +5212,6 @@ dependencies = [name = "wasmtime-wasi-tls-nativetls"version = "42.0.0"dependencies = [- "anyhow","futures","native-tls","test-programs-artifacts",diff --git a/crates/wasi-tls-nativetls/Cargo.toml b/crates/wasi-tls-nativetls/Cargo.tomlindex 6449ec8a7f..dd7bf05e09 100644--- a/crates/wasi-tls-nativetls/Cargo.toml+++ b/crates/wasi-tls-nativetls/Cargo.toml@@ -18,7 +18,6 @@ tokio-native-tls = { workspace = true }native-tls = { workspace = true }[dev-dependencies]-anyhow = { workspace = true }test-programs-artifacts = { workspace = true }wasmtime = { workspace = true, features = ["runtime", "component-model"] }wasmtime-wasi = { workspace = true }diff --git a/crates/wasi-tls-nativetls/tests/main.rs b/crates/wasi-tls-nativetls/tests/main.rsindex 202a2cd34c..5854ed58e9 100644--- a/crates/wasi-tls-nativetls/tests/main.rs+++ b/crates/wasi-tls-nativetls/tests/main.rs@@ -1,7 +1,7 @@-use anyhow::{Result, anyhow};use wasmtime::{- Store,+ Result, Store,component::{Component, Linker, ResourceTable},+ format_err,};use wasmtime_wasi::{WasiCtx, WasiCtxView, WasiView, p2::bindings::Command};use wasmtime_wasi_tls::{LinkOptions, WasiTls, WasiTlsCtx, WasiTlsCtxBuilder};@@ -52,7 +52,7 @@ async fn run_test(path: &str) -> Result<()> {.wasi_cli_run().call_run(&mut store).await?- .map_err(|()| anyhow!("command returned with failing exit status"))+ .map_err(|()| format_err!("command returned with failing exit status"))}macro_rules! assert_test_exists {