14 releases

new 0.6.0 Nov 13, 2024
0.5.0 Jan 17, 2024
0.4.0 Jan 9, 2023
0.3.3 Aug 30, 2022
0.1.1 Nov 13, 2019

#344 in Network programming

Download history 12892/week @ 2024-07-29 12003/week @ 2024-08-05 13906/week @ 2024-08-12 12941/week @ 2024-08-19 12990/week @ 2024-08-26 12687/week @ 2024-09-02 13764/week @ 2024-09-09 13020/week @ 2024-09-16 13106/week @ 2024-09-23 14109/week @ 2024-09-30 15678/week @ 2024-10-07 14792/week @ 2024-10-14 21579/week @ 2024-10-21 17639/week @ 2024-10-28 15302/week @ 2024-11-04 15821/week @ 2024-11-11

71,823 downloads per month
Used in 16 crates (10 directly)

Apache-2.0

26KB
466 lines

tokio-vsock

Asynchronous Virtio socket support for Rust. The implementation is based off of Tokio and Mio's TCPListener and TCPStream interfaces.

Use Cases

The most common use case for tokio-vsock would be writing agents for microvm applications. Examples would include container runtimes.

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

Dependencies

~5–14MB
~151K SLoC