A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Plumb the `wasmtime-internal-error/backtrace` cargo feature through to `wasmtime` (#12390)
Nick Fitzgeraldd7302ef4a3a0
diff --git a/Cargo.toml b/Cargo.tomlindex 22ee26d9d9..932a7251a2 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -477,6 +477,7 @@ default = ["wasi-tls",# Most features of Wasmtime are enabled by default.+ "backtrace","wat","parallel-compilation","pooling-allocator",@@ -540,6 +541,7 @@ wasi-http = ["component-model", "dep:wasmtime-wasi-http", "dep:tokio", "dep:hypewasi-config = ["dep:wasmtime-wasi-config"]wasi-keyvalue = ["dep:wasmtime-wasi-keyvalue"]pooling-allocator = ["wasmtime/pooling-allocator", "wasmtime-cli-flags/pooling-allocator"]+backtrace = ["wasmtime/backtrace"]component-model = ["wasmtime/component-model","wasmtime-wast?/component-model",diff --git a/crates/environ/Cargo.toml b/crates/environ/Cargo.tomlindex 4f6c2e7568..6ef18c016f 100644--- a/crates/environ/Cargo.toml+++ b/crates/environ/Cargo.toml@@ -57,6 +57,7 @@ required-features = ['component-model', 'compile'][features]anyhow = ["wasmtime-error/anyhow"]+backtrace = ["std", "wasmtime-error/backtrace"]component-model = ["dep:wasmtime-component-util","dep:semver",@@ -81,4 +82,5 @@ std = ['object/std','wasmparser/std','indexmap/std',+ 'wasmtime-error/std',]diff --git a/crates/wasmtime/Cargo.toml b/crates/wasmtime/Cargo.tomlindex 5109650679..3150d21822 100644--- a/crates/wasmtime/Cargo.toml+++ b/crates/wasmtime/Cargo.toml@@ -133,6 +133,7 @@ harness = false[features]default = ['async',+ 'backtrace','cache','gc','gc-drc',@@ -159,6 +160,9 @@ default = [# Enables conversion helpers between `anyhow::Error` and `wasmtime::Error`.anyhow = ["wasmtime-environ/anyhow"]+# Enables backtrace capturing in `wasmtime::Error`.+backtrace = ["std", "wasmtime-environ/backtrace"]+# An on-by-default feature enabling runtime compilation of WebAssembly modules# with the Cranelift compiler. Cranelift is the default compilation backend of# Wasmtime. If disabled then WebAssembly modules can only be created from