mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-04 07:39:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			312 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			312 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
use xencall::error::Result;
 | 
						|
use xencall::sys::CreateDomain;
 | 
						|
use xencall::XenCall;
 | 
						|
 | 
						|
#[tokio::main]
 | 
						|
async fn main() -> Result<()> {
 | 
						|
    env_logger::init();
 | 
						|
 | 
						|
    let call = XenCall::open(0)?;
 | 
						|
    let domid = call.create_domain(CreateDomain::default()).await?;
 | 
						|
    println!("created domain {}", domid);
 | 
						|
    Ok(())
 | 
						|
}
 |