| Crates.io | lief |
| lib.rs | lief |
| version | 0.17.0 |
| created_at | 2022-07-03 05:37:47.16286+00 |
| updated_at | 2025-09-14 13:50:13.458342+00 |
| description | Official Rust bindings for LIEF |
| homepage | https://lief.re |
| repository | https://github.com/lief-project/LIEF |
| max_upload_size | |
| id | 618181 |
| size | 4,905,461 |
These are the offical rust bindings for LIEF.

[dependencies]
lief = "0.17.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());
}
}
}