Fix errors for external_updater. am: c7791e9a21

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/vsock/+/1475301

Change-Id: I35c510fe054b12699c472625cdac09151679b9ed
tree: 6ba864dd6c47625a0ee8d6539e297053f357e64b
  1. .cargo/
  2. .cargo_vcs_info.json
  3. .gitignore
  4. Android.bp
  5. Cargo.toml
  6. Cargo.toml.orig
  7. LICENSE
  8. METADATA
  9. MODULE_LICENSE_APACHE2
  10. Makefile
  11. OWNERS
  12. README.android
  13. README.md
  14. src/
  15. tests/
README.md

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