Function auditable_info::audit_info_from_file
source · pub fn audit_info_from_file(
path: &Path,
limits: Limits,
) -> Result<VersionInfo, Error>
Expand description
Loads audit info from the specified binary compiled with cargo auditable
.
The entire file is loaded into memory. The RAM usage limit can be configured using the Limits
struct.
ⓘ
// Uses the default limits: 1GiB input file size, 8MiB audit data size
let info = audit_info_from_file(&PathBuf::from("path/to/file"), Default::default())?;
The data is validated to only have a single root package and not contain any circular dependencies.