Crates.io | lief |
lib.rs | lief |
version | 0.16.0 |
source | src |
created_at | 2022-07-03 05:37:47.16286 |
updated_at | 2024-12-10 11:13:35.639291 |
description | Official Rust bindings for LIEF |
homepage | https://lief.re |
repository | https://github.com/lief-project/LIEF |
max_upload_size | |
id | 618181 |
size | 4,288,406 |
These are the offical rust bindings for LIEF.
[dependencies]
lief = "0.16.0"
The bindings require Rust edition 2021 and rustc >= 1.74.0
use lief;
if let Some(lief::Binary::ELF(elf)) = lief::Binary::from(&mut file) {
println!("Dependencies:");
for entry in elf.dynamic_entries() {
if let dynamic::Entries::Library(lib) = entry {
println!(" - {}", lib.name());
}
}
println!("Versions:");
for version in elf.symbols_version_requirement() {
println!(" From {}", version.name());
for aux in version.auxiliary_symbols() {
println!(" - {}", aux.name());
}
}
}