Bug: 171249434

Clone this repo:
  1. 2f37417 Migrate 25 crates to monorepo by James Farrell · 4 months ago main master
  2. 0181b8b Update Android.bp by running cargo_embargo am: 96fa62c5ba by James Farrell · 6 months ago
  3. 96fa62c Update Android.bp by running cargo_embargo by James Farrell · 6 months ago
  4. 8069b2f Mark apex-available am: fceb0c1afb by Elisei Zamakhov · 6 months ago android15-tests-dev
  5. fceb0c1 Mark apex-available by Elisei Zamakhov · 7 months ago

vsock-rs

Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.

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