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

Method append_compiler_info

crates/wasmtime/src/engine.rs:726–729  ·  view source on GitHub ↗

Produces a blob of bytes by serializing the `engine`'s configuration data to be checked, perhaps in a different process, with the `check_compatible` method below. The blob of bytes is inserted into the object file specified to become part of the final compiled artifact.

(&self, obj: &mut Object<'_>)

Source from the content-addressed store, hash-verified

724 /// The blob of bytes is inserted into the object file specified to become part
725 /// of the final compiled artifact.
726 pub(crate) fn append_compiler_info(&self, obj: &mut Object<'_>) -> Result<()> {
727 serialization::append_compiler_info(self, obj, &serialization::Metadata::new(&self)?);
728 Ok(())
729 }
730
731 #[cfg(any(feature = "cranelift", feature = "winch"))]
732 pub(crate) fn append_bti(&self, obj: &mut Object<'_>) {

Callers 2

build_module_artifactsFunction · 0.80

Calls 3

append_compiler_infoFunction · 0.85
OkFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected