https://github.com/gimli-rs/findshlibs
Find the shared libraries loaded in the current process with a cross platform API
https://github.com/gimli-rs/findshlibs
Last synced: 2 months ago
JSON representation
Find the shared libraries loaded in the current process with a cross platform API
- Host: GitHub
- URL: https://github.com/gimli-rs/findshlibs
- Owner: gimli-rs
- License: apache-2.0
- Created: 2016-11-24T02:00:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-30T18:19:59.000Z (9 months ago)
- Last Synced: 2025-03-31T20:03:20.846Z (3 months ago)
- Language: Rust
- Homepage: https://crates.io/crates/findshlibs
- Size: 125 KB
- Stars: 78
- Watchers: 5
- Forks: 24
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `findshlibs`
[](https://crates.io/crates/findshlibs)
[](https://docs.rs/findshlibs)
[](https://github.com/gimli-rs/findshlibs/actions)Find the shared libraries loaded in the current process with a cross platform
API.## Documentation
[📚 Documentation on docs.rs 📚](https://docs.rs/findshlibs)
## 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.```rust
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
* iOSIf 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!