Parses and serializes the JSON dependency tree embedded in executables by the
cargo auditable
.
This crate defines the data structures that a serialized to/from JSON
and implements the serialization/deserialization routines via serde
.
It also provides optional conversions from cargo metadata
and to Cargo.lock
formats.
The [VersionInfo
] struct is where all the magic happens, see the docs on it for more info.
Basic usage
Note: this is a low-level crate that only implements JSON 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 platform-specific executable handling via
auditable-extract
and decompression
using the safe-Rust miniz_oxide
:
use ;
use ;