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

#434 in Network programming

Download history 21377/week @ 2024-07-18 19788/week @ 2024-07-25 20804/week @ 2024-08-01 19490/week @ 2024-08-08 22668/week @ 2024-08-15 21772/week @ 2024-08-22 19902/week @ 2024-08-29 20227/week @ 2024-09-05 21833/week @ 2024-09-12 19370/week @ 2024-09-19 23105/week @ 2024-09-26 23372/week @ 2024-10-03 21981/week @ 2024-10-10 27772/week @ 2024-10-17 30863/week @ 2024-10-24 22906/week @ 2024-10-31

109,465 downloads per month
Used in 16 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