virtfw-igvm-tools 0.1.3

igvm related linux applications
Documentation
use log::info;
use std::env;

use igvm::IgvmFile;
use virtfw_igvm_tools::inspect::inspect_igvm;

fn main() {
    stderrlog::new()
        .module(module_path!())
        .verbosity(stderrlog::LogLevelNum::Info)
        .init()
        .unwrap();

    let mut args: Vec<String> = env::args().collect();
    args.remove(0);
    for arg in args {
        info!("{arg}");

        let blob = std::fs::read(arg).expect("file read error");
        let igvm = IgvmFile::new_from_binary(&blob, None).expect("file parse error");

        inspect_igvm(&igvm);
    }
}