pub fn abi_header_from_path(path: &Path) -> Result<AbiHeaderRef, LibraryError>
Expand description

Gets the AbiHeaderRef of the library at the path.

This leaks the underlying dynamic library, if you need to do this without leaking you’ll need to use lib_header_from_raw_library instead.

Errors

This will return these errors:

  • LibraryError::OpenError: If the dynamic library itself could not be loaded.

  • LibraryError::GetSymbolError: If the root module was not exported.