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

#209 in Network programming

Download history 27060/week @ 2024-12-01 25720/week @ 2024-12-08 23832/week @ 2024-12-15 10978/week @ 2024-12-22 11692/week @ 2024-12-29 23055/week @ 2025-01-05 25439/week @ 2025-01-12 27997/week @ 2025-01-19 29054/week @ 2025-01-26 28670/week @ 2025-02-02 31985/week @ 2025-02-09 30153/week @ 2025-02-16 36519/week @ 2025-02-23 33366/week @ 2025-03-02 31094/week @ 2025-03-09 29267/week @ 2025-03-16

132,107 downloads per month
Used in 20 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