docs.rs failed to build arcbox-vz-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
arcbox-vz
Safe Rust bindings for Apple's Virtualization.framework.
Overview
This crate provides ergonomic, async-first bindings to Apple's Virtualization.framework, allowing you to create and manage virtual machines on macOS.
Features
- Safe API: Minimize unsafe code exposure with safe Rust abstractions
- Async-first: Native async/await support for all asynchronous operations
- Complete Coverage: Support all Virtualization.framework features (macOS 11+)
Platform Support
This crate only supports macOS 11.0 (Big Sur) and later. Attempting to compile on other platforms will result in a compilation error.
Entitlements
Your application must have the com.apple.security.virtualization entitlement to use this framework.
Usage
use ;
async
Device Configuration
use ;
// VirtioFS directory share
let share = new?; // readonly=false
let dir_share = new;
let fs_device = new;
config.set_directory_sharing_devices;
VM Lifecycle
| Method | Description |
|---|---|
start() |
Async start, waits for Running state |
stop() |
Force stop (destructive) |
pause() |
Pause execution |
resume() |
Resume from paused state |
request_stop() |
Send graceful shutdown request to guest |
state() |
Query current VirtualMachineState |
License
MIT OR Apache-2.0