Skip to main content

Crate zlayer_gcs

Crate zlayer_gcs 

Source
Expand description

GCS (Guest Compute Service) bridge for Windows Hyper-V utility VMs.

Host-side library that connects to a running UVM’s in-guest GCS over an hvsock (Hyper-V virtual socket), negotiates the GCS protocol, and dispatches RPCs (CreateContainer, ExecuteProcess, ModifySettings, …).

Mirrors hcsshim’s internal/gcs/{guestconnection.go, container.go, prot/protocol.go} Go reference implementation.

All FFI sits behind #[cfg(target_os = "windows")] — the crate compiles cleanly on non-Windows hosts (with the public types stubbed) so the rest of the workspace stays buildable on Linux/macOS dev boxes.

Re-exports§

pub use error::GcsError;
pub use error::GcsResult;

Modules§

diagnostics
Cross-module diagnostic helpers shared by the GCS bridge and any host-side code that wants to align its log timeline against ours.
error
Error type for the GCS bridge.
frame
GCS protocol frame codec.
protocol
GCS RPC message body types.