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

#382 in Network programming

Download history 19706/week @ 2024-07-27 20747/week @ 2024-08-03 20994/week @ 2024-08-10 21958/week @ 2024-08-17 20444/week @ 2024-08-24 20384/week @ 2024-08-31 21079/week @ 2024-09-07 21078/week @ 2024-09-14 19538/week @ 2024-09-21 23360/week @ 2024-09-28 24209/week @ 2024-10-05 22497/week @ 2024-10-12 30395/week @ 2024-10-19 27349/week @ 2024-10-26 23694/week @ 2024-11-02 23672/week @ 2024-11-09

109,837 downloads per month
Used in 17 crates (2 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