15 unstable releases (4 breaking)

0.5.0 Apr 9, 2024
0.4.0 Dec 5, 2023
0.3.0 Jul 29, 2022
0.2.6 Dec 14, 2021
0.1.4 Nov 12, 2019

#246 in Network programming

Download history 16463/week @ 2024-01-24 17523/week @ 2024-01-31 14718/week @ 2024-02-07 15131/week @ 2024-02-14 17075/week @ 2024-02-21 19772/week @ 2024-02-28 18521/week @ 2024-03-06 19823/week @ 2024-03-13 20532/week @ 2024-03-20 18305/week @ 2024-03-27 21460/week @ 2024-04-03 19783/week @ 2024-04-10 21779/week @ 2024-04-17 20540/week @ 2024-04-24 16225/week @ 2024-05-01 14570/week @ 2024-05-08

76,913 downloads per month
Used in 15 crates (2 directly)

Apache-2.0

14KB
290 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