Registry / networking / tokio-vsock

tokio-vsock

JSON →
library0.7.2rscratesunverified

Asynchronous Virtio socket support for Rust.

# Cargo.toml [dependencies] tokio-vsock = "0.7.2"
INSTALL
IMPORT
SIG · TOKIO-VSOCK
T
tokio-vsock
networkingrustv0.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VsockStream
use tokio_vsock::VsockStream;

Connect to a vsock endpoint asynchronously.

use tokio_vsock::VsockStream; #[tokio::main] async fn main() { let stream = VsockStream::connect(1, 1234).await.unwrap(); println!("Connected"); }
Debug
Known issues
gotchaRequires tokio runtime
fix
Ensure you are using #[tokio::main] or similar runtime.
affects: >=0.1.0
Upgrade
Version history
0.7.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
OpenAI (training)
1
Resources
tokio-vsock — cargo add tokio-vsock · libregistry