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

#249 in Network programming

Download history 22346/week @ 2024-10-11 28974/week @ 2024-10-18 29649/week @ 2024-10-25 22494/week @ 2024-11-01 24360/week @ 2024-11-08 26263/week @ 2024-11-15 23601/week @ 2024-11-22 25137/week @ 2024-11-29 25659/week @ 2024-12-06 24551/week @ 2024-12-13 12928/week @ 2024-12-20 10744/week @ 2024-12-27 21795/week @ 2025-01-03 24400/week @ 2025-01-10 27491/week @ 2025-01-17 24099/week @ 2025-01-24

100,128 downloads per month
Used in 18 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
~35K SLoC