10 releases

0.0.10 Sep 23, 2016
0.0.9 Apr 21, 2016
0.0.6 Jan 12, 2016
0.0.5 Jul 24, 2015
0.0.2 Jan 29, 2015

#13 in #elf

Download history 111/week @ 2019-12-10 188/week @ 2019-12-17 78/week @ 2019-12-24 141/week @ 2019-12-31 96/week @ 2020-01-07 125/week @ 2020-01-14 117/week @ 2020-01-21 212/week @ 2020-01-28 257/week @ 2020-02-04 205/week @ 2020-02-11 163/week @ 2020-02-18 317/week @ 2020-02-25 475/week @ 2020-03-03 643/week @ 2020-03-10 310/week @ 2020-03-17 336/week @ 2020-03-24

588 downloads per month
Used in 15 crates

MIT/Apache

43KB
931 lines

Build Status

rust-elf

Pure-Rust library for parsing ELF files

Documentation

Example:

extern crate elf;

use std::env;
use std::path::PathBuf;

let path = PathBuf::from("/some/file/path");
let file = match elf::File::open_path(&path) {
    Ok(f) => f,
    Err(e) => panic!("Error: {:?}", e),
};

let text_scn = match file.get_section(".text") {
    Some(s) => s,
    None => panic!("Failed to look up .text section"),
};

println!("{}", text_scn.data);

Dependencies

~160KB