Registry / utility / libloading

libloading

JSON →
library0.9.0rscratesunverified

Bindings around the platform's dynamic library loading primitives with greatly improved memory safety.

# Cargo.toml [dependencies] libloading = "0.9.0"
INSTALL
IMPORT
SIG · LIBLOADING
L
libloading
utilityrustv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Library
use libloading::Library;

Load a dynamic library and call a function from it.

use libloading::Library; unsafe { let lib = Library::new("libexample.so").unwrap(); let func: libloading::Symbol<fn()> = lib.get(b"example_function").unwrap(); func(); }
Debug
Known issues
gotchaAll operations on loaded symbols are unsafe; incorrect function signatures can cause undefined behavior.
fix
Ensure the function signature matches exactly and use `unsafe` blocks appropriately.
affects: >=0.9.0
Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
libloading — cargo add libloading · libregistry