16 unstable releases (4 breaking)

0.5.1 Aug 27, 2024
0.5.0 Apr 9, 2024
0.4.0 Dec 5, 2023
0.3.0 Jul 29, 2022
0.1.4 Nov 12, 2019

#376 in Network programming

Download history 20939/week @ 2024-08-20 20687/week @ 2024-08-27 20143/week @ 2024-09-03 22049/week @ 2024-09-10 19438/week @ 2024-09-17 21365/week @ 2024-09-24 22365/week @ 2024-10-01 23734/week @ 2024-10-08 24953/week @ 2024-10-15 31476/week @ 2024-10-22 24686/week @ 2024-10-29 22998/week @ 2024-11-05 24610/week @ 2024-11-12 26379/week @ 2024-11-19 22141/week @ 2024-11-26 22396/week @ 2024-12-03

98,888 downloads per month
Used in 17 crates (3 directly)

Apache-2.0

15KB
302 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

lib.rs:

Virtio socket support for Rust.

Dependencies

~1.5MB
~36K SLoC