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

#234 in Network programming

Download history 19653/week @ 2024-09-18 22109/week @ 2024-09-25 22163/week @ 2024-10-02 23860/week @ 2024-10-09 26568/week @ 2024-10-16 30584/week @ 2024-10-23 23963/week @ 2024-10-30 22843/week @ 2024-11-06 25267/week @ 2024-11-13 26406/week @ 2024-11-20 23197/week @ 2024-11-27 25427/week @ 2024-12-04 25058/week @ 2024-12-11 20047/week @ 2024-12-18 9833/week @ 2024-12-25 16613/week @ 2025-01-01

76,598 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