15 releases (8 breaking)
0.10.2 | Nov 11, 2021 |
---|---|
0.9.0 | Oct 2, 2021 |
0.8.0 | Nov 25, 2020 |
0.7.0 | May 12, 2020 |
0.2.0 | Nov 24, 2016 |
#58 in Operating systems
825,659 downloads per month
Used in 203 crates
(10 directly)
61KB
1.5K
SLoC
findshlibs
Find the shared libraries loaded in the current process with a cross platform API.
Documentation
Example
Here is an example program that prints out each shared library that is loaded in the process and the addresses where each of its segments are mapped into memory.
extern crate findshlibs;
use findshlibs::{Segment, SharedLibrary, TargetSharedLibrary};
fn main() {
TargetSharedLibrary::each(|shlib| {
println!("{}", shlib.name().to_string_lossy());
for seg in shlib.segments() {
println!(" {}: segment {}",
seg.actual_virtual_memory_address(shlib),
seg.name().to_string_lossy());
}
});
}
Supported OSes
These are the OSes that findshlibs
currently supports:
- Linux
- macOS
- Windows
- Android
- iOS
If a platform is not supported then a fallback implementation is used that
does nothing. To see if your platform does something at runtime the
TARGET_SUPPORTED
constant can be used.
Is your OS missing here? Send us a pull request!
Dependencies
~0.4–520KB