Extracts the dependency tree information embedded in executables by
cargo auditable
.
This crate parses platform-specific binary formats (ELF, PE, Mach-O, WASM) and obtains the compressed audit data.
Unlike other binary parsing crates, it is specifically designed to be resilient to malicious input. It 100% safe Rust (including all dependencies) and performs no heap allocations.
Usage
Note: this is a low-level crate that only implements binary parsing. It rarely should be used directly.
You probably want the higher-level auditable-info
crate instead.
The following snippet demonstrates full extraction pipeline using this crate, including decompression
using the safe-Rust miniz_oxide
and optional JSON parsing
via auditable-serde
:
use ;
use ;
!