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 methods are available on the
`wasmtime::Config` type, regardless of the enabled crate features:
1. `Config::wasm_threads`.
2. `Config::wasm_reference_types`.
3. `Config::wasm_component_model`.
4. `Config::parallel_compilation`.
Of these, enabling any of the first three while the corresponding crate
feature is disabled will lead to a runtime error when constructing the
`wasmtime::Engine`. Enabling the last one, parallel compilation, will
simply do nothing.
fixes#10454
0 commit comments