MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / newComponentEngine

Function newComponentEngine

component_test.go:18–22  ·  view source on GitHub ↗

newComponentEngine returns an Engine with the component-model proposal enabled, which is required to compile and instantiate components.

()

Source from the content-addressed store, hash-verified

16// newComponentEngine returns an Engine with the component-model proposal
17// enabled, which is required to compile and instantiate components.
18func newComponentEngine() *Engine {
19 cfg := NewConfig()
20 cfg.SetWasmComponentModel(true)
21 return NewEngineWithConfig(cfg)
22}
23
24// newComponent compiles `wat` into a fresh [Component] for tests. The
25// returned component must be closed by the caller.

Calls 3

SetWasmComponentModelMethod · 0.95
NewConfigFunction · 0.85
NewEngineWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…