Thanks to visit codestin.com
Credit goes to lib.rs

17 releases

new 0.5.2 Nov 7, 2025
0.5.1 Aug 27, 2024
0.5.0 Apr 9, 2024
0.4.0 Dec 5, 2023
0.1.4 Nov 12, 2019

#232 in Network programming

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

240,772 downloads per month
Used in 61 crates (5 directly)

Apache-2.0

21KB
405 lines

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

Dependencies

~1.5MB
~38K SLoC