16 unstable releases (6 breaking)

new 0.7.1 Apr 10, 2025
0.7.0 Dec 25, 2024
0.6.0 Nov 13, 2024
0.5.0 Jan 17, 2024
0.1.1 Nov 13, 2019

#747 in Network programming

Download history 7576/week @ 2024-12-23 8492/week @ 2024-12-30 16004/week @ 2025-01-06 17460/week @ 2025-01-13 19705/week @ 2025-01-20 18835/week @ 2025-01-27 16603/week @ 2025-02-03 20593/week @ 2025-02-10 19619/week @ 2025-02-17 24349/week @ 2025-02-24 22336/week @ 2025-03-03 22271/week @ 2025-03-10 21396/week @ 2025-03-17 21642/week @ 2025-03-24 22000/week @ 2025-03-31 23462/week @ 2025-04-07

89,542 downloads per month
Used in 19 crates (13 directly)

Apache-2.0

30KB
504 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
~165K SLoC