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

Method ensure_allow_precompiled

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

Source from the content-addressed store, hash-verified

175 }
176
177 pub fn ensure_allow_precompiled(&self) -> Result<()> {
178 if self.allow_precompiled {
179 Ok(())
180 } else {
181 bail!("running a precompiled module requires the `--allow-precompiled` flag")
182 }
183 }
184
185 #[cfg(feature = "component-model")]
186 fn ensure_allow_components(&self) -> Result<()> {

Callers 1

load_module_contentsMethod · 0.80

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected