Explicitly enables (and un-disables) a given set of [`WasmFeatures`]. Note: this is a low-level method that does not necessarily imply that wasmtime _supports_ a feature. It should only be used to _disable_ features that callers want to be rejected by the parser or _enable_ features callers are certain that the current configuration of wasmtime supports. Feature validation is deferred until an e
(&mut self, flag: WasmFeatures, enable: bool)
| 872 | /// [`Engine::new`](crate::Engine::new) to fail later, if the feature |
| 873 | /// configuration isn't supported. |
| 874 | pub fn wasm_features(&mut self, flag: WasmFeatures, enable: bool) -> &mut Self { |
| 875 | self.enabled_features.set(flag, enable); |
| 876 | self.disabled_features.set(flag, !enable); |
| 877 | self |
| 878 | } |
| 879 | |
| 880 | /// Configures whether the WebAssembly tail calls proposal will be enabled |
| 881 | /// for compilation or not. |
no test coverage detected