From 6494117e1766337f5d688b98bfc3df999932c3ac Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 9 Jul 2019 17:21:54 -0700 Subject: usb: replace libusb with Rust usb_util library Drop the dependency on libusb and reimplement the host USB backend using usb_sys to wrap the Linux usbdevfs ioctls. This allows sandboxing to work without any dependency on libusb patches, and it gives us the flexibility to modify and update the USB backend without depending on an external third-party library. BUG=chromium:987833 TEST=`adb logcat` on nami with Nexus 5 attached TEST=deploy app to phone with Android Studio TEST=Run EdgeTPU USB accelerator demo (including DFU mode transition) Cq-Depend: chromium:1773695 Change-Id: I4321c2b6142caac15f48f197795a37d59d268831 Signed-off-by: Daniel Verkamp Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1783601 Reviewed-by: Zach Reizner Tested-by: kokoro --- vm_control/Cargo.toml | 3 --- 1 file changed, 3 deletions(-) (limited to 'vm_control') diff --git a/vm_control/Cargo.toml b/vm_control/Cargo.toml index eb8a078..564aea1 100644 --- a/vm_control/Cargo.toml +++ b/vm_control/Cargo.toml @@ -4,9 +4,6 @@ version = "0.1.0" authors = ["The Chromium OS Authors"] edition = "2018" -[features] -sandboxed-libusb = [] - [dependencies] data_model = { path = "../data_model" } kvm = { path = "../kvm" } -- cgit 1.4.1