14 releases

0.4.0 Dec 5, 2023
0.3.0 Jul 29, 2022
0.2.6 Dec 14, 2021
0.2.5 Nov 19, 2021
0.1.4 Nov 12, 2019

#505 in Network programming

Download history 16747/week @ 2023-12-01 16822/week @ 2023-12-08 14992/week @ 2023-12-15 8721/week @ 2023-12-22 9115/week @ 2023-12-29 13828/week @ 2024-01-05 14427/week @ 2024-01-12 15185/week @ 2024-01-19 17324/week @ 2024-01-26 16645/week @ 2024-02-02 14322/week @ 2024-02-09 16029/week @ 2024-02-16 18718/week @ 2024-02-23 18485/week @ 2024-03-01 19130/week @ 2024-03-08 17405/week @ 2024-03-15

76,994 downloads per month
Used in 10 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