3 releases
0.6.2 | Mar 24, 2021 |
---|---|
0.6.1 | Dec 7, 2019 |
0.6.0 | Dec 7, 2019 |
#1749 in Parser implementations
110KB
2.5K
SLoC
Dexparser
A Rust library for parsing Android's DEX file format with parser combinators.
What is DEX?
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.
Usage
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 */ }
}
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Dependencies
~1MB
~21K SLoC