| Crates.io | dexparser |
| lib.rs | dexparser |
| version | 0.6.2 |
| created_at | 2019-12-07 12:43:45.379941+00 |
| updated_at | 2021-03-24 13:52:46.697277+00 |
| description | Parser for Android's DEX file format |
| homepage | https://github.com/mdeg/dexparser |
| repository | https://github.com/mdeg/dexparser |
| max_upload_size | |
| id | 187083 |
| size | 108,687 |
A Rust library for parsing Android's DEX file format with parser combinators.
The Dalvik Executable (DEX) format is a file format used by Android to encode compiled Dalvik bytecode. It is distributed as part of a packaged Android application package (APK) and executed by Android phones.
The best reference for the format is the official document, which this library is based off.
let mut file = File::open(path).unwrap();
let mut bytes = Vec::new();
file.read_to_end(&mut bytes);
match dexparser::parse(&bytes) {
Ok(res) => { /* do something */ },
Err(e) => { /* handle error */ }
}
This project is licensed under the MIT License - see the LICENSE.md file for details