| Crates.io | tokio-vsock |
| lib.rs | tokio-vsock |
| version | 0.7.2 |
| created_at | 2019-11-12 22:49:16.569286+00 |
| updated_at | 2025-08-16 09:57:23.48936+00 |
| description | Asynchronous Virtio socket support for Rust |
| homepage | https://github.com/rust-vsock/tokio-vsock |
| repository | https://github.com/rust-vsock/tokio-vsock |
| max_upload_size | |
| id | 180764 |
| size | 100,516 |
Asynchronous Virtio socket support for Rust. The implementation is
based off of Tokio and Mio's TCPListener and TCPStream interfaces.
The most common use case for tokio-vsock would be writing agents for microvm applications. Examples would include container runtimes.
Refer to the crate documentation.
You will need a recent qemu-system-x86_64 build in your path.
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
Run the test suite with:
make check