17 releases

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

#355 in Network programming

Download history 57452/week @ 2025-10-29 62759/week @ 2025-11-05 62545/week @ 2025-11-12 68858/week @ 2025-11-19 62773/week @ 2025-11-26 80917/week @ 2025-12-03 90808/week @ 2025-12-10 74540/week @ 2025-12-17 32908/week @ 2025-12-24 50347/week @ 2025-12-31 80797/week @ 2026-01-07 62417/week @ 2026-01-14 79479/week @ 2026-01-21 75154/week @ 2026-01-28 118152/week @ 2026-02-04 100472/week @ 2026-02-11

385,631 downloads per month
Used in 69 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

~2MB
~38K SLoC