• Home
Name Date Size #Lines LOC

..--

src/04-Jul-2025-398302

tests/04-Jul-2025-10362

.android-checksum.jsonD04-Jul-20251,014 11

.cargo-checksum.jsonD04-Jul-2025566 11

Android.bpD04-Jul-2025891 3632

Cargo.tomlD04-Jul-20251,006 4236

LICENSED04-Jul-202511.1 KiB202169

METADATAD04-Jul-2025358 1817

MODULE_LICENSE_APACHE2D04-Jul-20250

MakefileD04-Jul-20252.4 KiB7339

README.mdD04-Jul-2025575 3722

TEST_MAPPINGD04-Jul-2025260 1211

cargo_embargo.jsonD04-Jul-202552 54

README.md

1# vsock-rs
2
3Virtio socket support for Rust. Implements VsockListener and VsockStream
4which are analogous to the `std::net::TcpListener` and `std::net::TcpStream` types.
5
6## Usage
7
8Refer to the crate [documentation](https://docs.rs/vsock).
9
10## Testing
11
12### Prerequisites
13
14You will need a recent `qemu-system-x86_64` build in your path.
15
16### Host
17
18Setup the required virtio kernel modules:
19
20```
21make kmod
22```
23
24Start the test vm, you can shutdown the vm with the keyboard shortcut `Ctrl+A` and then `x`:
25
26```
27make vm
28```
29
30### Tests
31
32Run the test suite with:
33
34```
35make check
36```
37