mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
introduce xencl for high-level interaction with xen
This commit is contained in:
9
xencl/examples/simple.rs
Normal file
9
xencl/examples/simple.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use std::collections::HashMap;
|
||||
use xencl::{XenClient, XenClientError};
|
||||
|
||||
fn main() -> Result<(), XenClientError> {
|
||||
let mut client = XenClient::open()?;
|
||||
let entries: HashMap<String, String> = HashMap::new();
|
||||
client.create(2, entries)?;
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user