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

Method gc_support

crates/wasmtime/src/config.rs:3120–3122  ·  view source on GitHub ↗

Enable/disable GC support in Wasmtime entirely. This flag can be used to gate whether GC infrastructure is enabled or initialized in Wasmtime at all. Wasmtime's GC implementation is required for the [`Self::wasm_gc`] proposal, [`Self::wasm_function_references`], and [`Self::wasm_exceptions`] at this time. None of those proposal can be enabled without also having this option enabled. This option

(&mut self, enable: bool)

Source from the content-addressed store, hash-verified

3118 /// This option defaults to whether the crate `gc` feature is enabled or
3119 /// not.
3120 pub fn gc_support(&mut self, enable: bool) -> &mut Self {
3121 self.wasm_features(WasmFeatures::GC_TYPES, enable)
3122 }
3123
3124 /// Explicitly indicate or not whether the host is using a hardware float
3125 /// ABI on x86 targets.

Callers 3

private_entity_accessFunction · 0.80
configMethod · 0.80

Calls 1

wasm_featuresMethod · 0.80

Tested by

no test coverage detected