MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasm_features

Method wasm_features

crates/wasmtime/src/config.rs:874–878  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

wasm_tail_callMethod · 0.80
wasm_threadsMethod · 0.80
wasm_reference_typesMethod · 0.80
wasm_wide_arithmeticMethod · 0.80
wasm_gcMethod · 0.80
wasm_simdMethod · 0.80
wasm_relaxed_simdMethod · 0.80
wasm_bulk_memoryMethod · 0.80
wasm_multi_valueMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected