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

#1113 in Network programming

Download history 21027/week @ 2024-10-23 15761/week @ 2024-10-30 14904/week @ 2024-11-06 16926/week @ 2024-11-13 16853/week @ 2024-11-20 14807/week @ 2024-11-27 16516/week @ 2024-12-04 16939/week @ 2024-12-11 14385/week @ 2024-12-18 6941/week @ 2024-12-25 11975/week @ 2025-01-01 15254/week @ 2025-01-08 18680/week @ 2025-01-15 20223/week @ 2025-01-22 17711/week @ 2025-01-29 14871/week @ 2025-02-05

74,399 downloads per month
Used in 17 crates (11 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–13MB
~155K SLoC