Skip to main content

build_native_pe_cdylib

Function build_native_pe_cdylib 

pub fn build_native_pe_cdylib() -> Result<PathBuf, String>
Expand description

Build (and cache) the PE compiled as an IN-PROCESS cdylib exporting logos_pe_specialize. Mirrors build_native_pe_binary but emits a cdylib whose lib.rs is the generated PE engine (pe_cdylib_source) plus a hand-written extern "C" shim ([PE_CDYLIB_SHIM]) that decodes the wire CProgram and calls peSpecializeOnce directly — so the caller loads it once and specializes with a plain function call, no process, no pipe. Content-addressed on the (stable) cdylib PE source + shim + toolchain, so warm calls skip rustc.