vm-rs 0.2.4

Cross-platform VM lifecycle management — Apple Virtualization.framework (macOS) + Cloud Hypervisor (Linux)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! VM networking — L2 virtual switch, Linux bridge, port forwarding.
//!
//! Two networking backends:
//! - **macOS**: `NetworkSwitch` — userspace L2 learning bridge via socketpairs
//! - **Linux**: `bridge` module — Linux kernel bridge + TAP devices + iptables NAT

#[cfg(target_os = "linux")]
pub mod bridge;
pub mod port_forward;
#[cfg(unix)]
pub mod switch;

pub use port_forward::PortForwarder;
#[cfg(unix)]
pub use switch::NetworkSwitch;