Fix errors for external_updater.

* Unrecognized field name in METADATA kills external_updater.
  It is moved to README.android.
* Local patch for src/lib.rs is omitted, assuming that the
  change will be in the next release.
* The following update command test if the next update
  will preserve required local changes:
    updater.sh update --refresh --keep_date rust/crates/vsock

Test: make
Test: tools/external_updater/updater.sh update --refresh --keep_date rust/crates/vsock
Change-Id: I39f61c37bcc25009b078b62d01057aad80f00ad9
3 files changed
tree: 6ba864dd6c47625a0ee8d6539e297053f357e64b
  1. .cargo/
  2. src/
  3. tests/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. Cargo.toml
  8. Cargo.toml.orig
  9. LICENSE
  10. Makefile
  11. METADATA
  12. MODULE_LICENSE_APACHE2
  13. OWNERS
  14. README.android
  15. README.md
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