14 releases

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

#365 in Network programming

Download history 14183/week @ 2024-08-16 12667/week @ 2024-08-23 12509/week @ 2024-08-30 13220/week @ 2024-09-06 13595/week @ 2024-09-13 12941/week @ 2024-09-20 14759/week @ 2024-09-27 14924/week @ 2024-10-04 14258/week @ 2024-10-11 19799/week @ 2024-10-18 20260/week @ 2024-10-25 14527/week @ 2024-11-01 16182/week @ 2024-11-08 17372/week @ 2024-11-15 15097/week @ 2024-11-22 12936/week @ 2024-11-29

64,063 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–13MB
~151K SLoC