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

Method ensure_allow_components

src/common.rs:186–192  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

184
185 #[cfg(feature = "component-model")]
186 fn ensure_allow_components(&self) -> Result<()> {
187 if self.common.wasm.component_model == Some(false) {
188 bail!("cannot execute a component without `--wasm component-model`");
189 }
190
191 Ok(())
192 }
193
194 pub fn load_module(
195 &self,

Callers 1

load_module_contentsMethod · 0.80

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected