auditable_info

Function json_from_file

Source
pub fn json_from_file(path: &Path, limits: Limits) -> Result<String, Error>
Expand description

Extracts the audit data from the specified binary and returns the JSON string. This is useful if you want to forward the data somewhere instead of parsing it to Rust data structures.

If you want to obtain the Zlib-compressed data instead, use the auditable-extract crate directly.