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

Method from_binary

crates/wasmtime/src/runtime/component/component.rs:196–200  ·  view source on GitHub ↗
(engine: &Engine, binary: &[u8])

Source from the content-addressed store, hash-verified

194 /// For more information on semantics and errors see [`Component::new`].
195 #[cfg(any(feature = "cranelift", feature = "winch"))]
196 pub fn from_binary(engine: &Engine, binary: &[u8]) -> Result<Component> {
197 crate::CodeBuilder::new(engine)
198 .wasm_binary(binary, None)?
199 .compile_component()
200 }
201
202 /// Same as [`Module::deserialize`], but for components.
203 ///

Callers

nothing calls this directly

Calls 3

wasm_binaryMethod · 0.80
newFunction · 0.50
compile_componentMethod · 0.45

Tested by

no test coverage detected