Skip to main content

load_native_runtime_libraries

Function load_native_runtime_libraries 

Source
pub unsafe fn load_native_runtime_libraries<I, P>(
    paths: I,
) -> Result<(), NativeRuntimeLoadError>
where I: IntoIterator<Item = P>, P: AsRef<Path>,
Expand description

Load native runtime libraries and resolve Skippy ABI symbols from them.

Libraries are loaded in the provided order and symbols are resolved by searching from the last library backwards, so dependencies should appear before the primary libllama/llama.dll entry.

ยงSafety

The caller must ensure every library belongs to the same MeshLLM native runtime artifact for the running MeshLLM version and Skippy ABI. Loading arbitrary libraries can bind incompatible C symbols and cause undefined behavior in later FFI calls.