15 unstable releases (6 breaking)

0.7.0 Dec 25, 2024
0.6.0 Nov 13, 2024
0.5.0 Jan 17, 2024
0.4.0 Jan 9, 2023
0.1.1 Nov 13, 2019

#774 in Network programming

Download history 16166/week @ 2024-11-21 15103/week @ 2024-11-28 17172/week @ 2024-12-05 16913/week @ 2024-12-12 11528/week @ 2024-12-19 6762/week @ 2024-12-26 13948/week @ 2025-01-02 16238/week @ 2025-01-09 18434/week @ 2025-01-16 20227/week @ 2025-01-23 17619/week @ 2025-01-30 17953/week @ 2025-02-06 19061/week @ 2025-02-13 22986/week @ 2025-02-20 24653/week @ 2025-02-27 17658/week @ 2025-03-06

88,002 downloads per month
Used in 18 crates (12 directly)

Apache-2.0

28KB
473 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
~157K SLoC