You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep Config options for disabling compiled-out features
This patch keeps config options for disabling default-enabled wasmtime
features, even when those features are disabled via crate feature flags.
That way, these wasm features can be disabled by libraries even if the
crate-level features are later enabled by some other crate in the
build-tree.
Specifically, the following `wasmtime::Config` methods are now enabled
regardless of compile-time features (removed dependency on the GC feature):
1. `Config::wasm_reference_types`.
2. `Config::wasm_function_references`.
The following methods are available on the `wasmtime::Config` type,
regardless of the enabled crate features but will lead to runtime errors
when constructing a `wasmtime::Engine`:
1. `Config::wasm_threads`.
2. `Config::wasm_gc`.
3. `Config::wasm_component_model`.
4. `Config::wasm_component_model_async`.
Finally, `Config::parallel_compilation` is defined regardless of whether
or not the parallel compilation feature is enabled. However, without the
corresponding crate feature, this config option is a no-op.
fixes#10454
0 commit comments