Skip to main content

library_functions_loader

Function library_functions_loader 

Source
pub fn library_functions_loader(libraries: &[LibraryArtifact]) -> Expr
Expand description

Build the loader association written to Functions.wl, the single entry point shared by the cargo wl build CLI and the runtime WSTP loader.

Produces With[{<caller prelude…>, lib1 = path1, …}, <|key -> Caller[LibraryFunctionLoad[…]], …|>], where each library’s path is bound to a libN symbol that its functions reference. Only the caller-prelude bindings (NativeCaller/WSTPCaller/ WXFCaller) actually used are emitted, and libraries with no functions are skipped.