rust-vsock/vsock-rs

Virtio socket support for Rust

42

stars

114

commits

Rust

primary language

Jun 23, 2026

updated

crates.io/crates/vsock

README

vsock-rs

Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.

Usage

Refer to the crate documentation.

Testing

Prerequisites

You will need a recent qemu-system-x86_64 build in your path.

Host

Setup the required virtio kernel modules:

make kmod

Start the test vm, you can shutdown the vm with the keyboard shortcut Ctrl+A and then x:

make vm

Tests

Run the test suite with:

make check

Contributors

qwandor

41 commits

Tim-Zhang

32 commits

dependabot[bot]

15 commits

dpeckett

13 commits

rust-vsock/vsock-rs

Virtio socket support for Rust

42

stars

114

commits

Rust

primary language

Jun 23, 2026

updated

crates.io/crates/vsock

README

vsock-rs

Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.

Usage

Refer to the crate documentation.

Testing

Prerequisites

You will need a recent qemu-system-x86_64 build in your path.

Host

Setup the required virtio kernel modules:

make kmod

Start the test vm, you can shutdown the vm with the keyboard shortcut Ctrl+A and then x:

make vm

Tests

Run the test suite with:

make check

Contributors

qwandor

41 commits

Tim-Zhang

32 commits

dependabot[bot]

15 commits

dpeckett

13 commits

Languages

Rust

88.6%

Makefile

8.6%

Shell

2.8%