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

Method enable_compiler

crates/wasmtime/src/config.rs:362–373  ·  view source on GitHub ↗
(&mut self, enable: bool)

Source from the content-addressed store, hash-verified

360 /// `"cranelift"` or `"winch"` features across the whole workspace.
361 #[cfg(any(feature = "cranelift", feature = "winch"))]
362 pub fn enable_compiler(&mut self, enable: bool) -> &mut Self {
363 match (enable, &self.compiler_config) {
364 (true, Some(_)) | (false, None) => {}
365 (true, None) => {
366 self.compiler_config = Some(CompilerConfig::default());
367 }
368 (false, Some(_)) => {
369 self.compiler_config = None;
370 }
371 }
372 self
373 }
374
375 /// Configures the target platform of this [`Config`].
376 ///

Calls

no outgoing calls

Tested by 15

config_newFunction · 0.64
func_newFunction · 0.64
func_new_with_typeFunction · 0.64
func_callFunction · 0.64
func_call_asyncFunction · 0.64
typed_func_call_asyncFunction · 0.64