Registry / other / dlopen2

dlopen2

JSON →
library0.8.2rscratesunverified

Library for opening and operating on dynamic link libraries (also known as shared objects or shared libraries).

# Cargo.toml [dependencies] dlopen2 = "0.8.2"
INSTALL
IMPORT
SIG · DLOPEN2
D
dlopen2
otherrustv0.8.2
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 dlopen2::Library;

Open a shared library and call a function from it.

use dlopen2::Library; fn main() -> Result<(), Box<dyn std::error::Error>> { let lib = Library::open("libexample.so")?; unsafe { let func: libloading::Symbol<fn()> = lib.symbol(b"example_function")?; func(); } Ok(()) }
Debug
Known issues
gotchaUnsafe code required for symbol access
fix
Wrap unsafe blocks carefully and ensure symbol lifetimes are valid.
affects: >=0.8.0
Upgrade
Version history
0.8.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
dlopen2 — cargo add dlopen2 · libregistry