Skip to main content

Crate uhyvelib

Crate uhyvelib 

Source
Expand description

§Uhyve Library

Uhyve is specialized a hypervisor for the Hermit Unikernel.

The hypervisor implementation is centered around the UhyveVm struct. Usage is quite straigthforward:

use uhyvelib::{UhyveVm, params::{Output, Params}};
let vm = UhyveVm::new(
    "path/to/hermit/binary".into(),
    Params {
        output: Output::StdIo,
        ..Default::default()
    },
)
.unwrap();
let res = vm.run();
println!("VM returned {}", res.code);

Re-exports§

pub use stats::VmStats;
pub use vm::DefaultBackend;
pub use vm::UhyveVm;
pub use vm::VmResult;

Modules§

params
Parameters for UhyveVms.
stats
VM run statistics
vm
UhyveVm implementation & related code.

Enums§

HypervisorError

Type Aliases§

HypervisorResult