| Crates.io | vsock |
| lib.rs | vsock |
| version | 0.5.2 |
| created_at | 2019-11-09 19:57:02.183051+00 |
| updated_at | 2025-11-07 13:33:15.406378+00 |
| description | Virtio socket support for Rust |
| homepage | https://github.com/rust-vsock/vsock-rs |
| repository | https://github.com/rust-vsock/vsock-rs |
| max_upload_size | |
| id | 179759 |
| size | 48,887 |
Virtio socket support for Rust. Implements VsockListener and VsockStream
which are analogous to the std::net::TcpListener and std::net::TcpStream types.
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