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

#786 in Network programming

Download history 15097/week @ 2024-11-22 15823/week @ 2024-11-29 17294/week @ 2024-12-06 16720/week @ 2024-12-13 9386/week @ 2024-12-20 7718/week @ 2024-12-27 15201/week @ 2025-01-03 16549/week @ 2025-01-10 18759/week @ 2025-01-17 20028/week @ 2025-01-24 16765/week @ 2025-01-31 19114/week @ 2025-02-07 19241/week @ 2025-02-14 24177/week @ 2025-02-21 23743/week @ 2025-02-28 22153/week @ 2025-03-07

93,437 downloads per month
Used in 19 crates (13 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