Skip to main content

load_downloaded_library

Function load_downloaded_library 

Source
pub unsafe fn load_downloaded_library() -> Result<(), Box<dyn Error>>
Expand description

Load the prebuilt library that build.rs downloaded (dynamic mode).

Returns an error in dynamic mode without download. In static mode this is a no-op: the library is already linked.

§Safety

Same contract as load_library — must be called before any other FFI function, and only once.