updating naming conventions

master
gaurav-packt 3 years ago
parent bd7de0fd73
commit 88ebdb858d

@ -1,56 +0,0 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "bit-set"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6e1e6fb1c9e3d6fcdec57216a74eaa03e41f52a22f13a16438251d8e88b89da"
dependencies = [
"bit-vec",
]
[[package]]
name = "bit-vec"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f0dc55f2d8a1a85650ac47858bb001b4c0dd73d79e3c455a842925e68d29cd3"
[[package]]
name = "libc"
version = "0.2.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614"
[[package]]
name = "libusb"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f990ddd929cbe53de4ecd6cf26e1f4e0c5b9796e4c629d9046570b03738aa53"
dependencies = [
"bit-set",
"libc",
"libusb-sys",
]
[[package]]
name = "libusb-sys"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c53b6582563d64ad3e692f54ef95239c3ea8069e82c9eb70ca948869a7ad767"
dependencies = [
"libc",
"pkg-config",
]
[[package]]
name = "pkg-config"
version = "0.3.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c"
[[package]]
name = "usb"
version = "0.1.0"
dependencies = [
"libusb",
]

@ -1,8 +0,0 @@
[package]
name = "usb"
version = "0.1.0"
authors = ["peshwar9"]
edition = "2018"
[dependencies]
libusb = "0.3.0"

@ -1,115 +0,0 @@
use libusb::{Context, Device, DeviceHandle};
use std::fs::File;
use std::io::Write;
use std::result::Result;
use std::time::Duration;
use std::fmt;
#[derive(Debug)]
struct USBError {
err: String,
}
struct USBList {
list: Vec<USBDetails>,
}
#[derive(Debug)]
struct USBDetails {
manufacturer: String,
product: String,
serial_number: String,
bus_number: u8,
device_address: u8,
vendor_id: u16,
product_id: u16,
maj_device_version: u8,
min_device_version: u8,
}
impl fmt::Display for USBList {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Ok(for usb in &self.list {
writeln!(f, "\nUSB Device details")?;
writeln!(f, "Manufacturer: {}", usb.manufacturer)?;
writeln!(f, "Product: {}", usb.product)?;
writeln!(f, "Serial number: {}", usb.serial_number)?;
writeln!(f, "Bus number: {}", usb.bus_number)?;
writeln!(f, "Device address: {}", usb.device_address)?;
writeln!(f, "Vendor Id: {}", usb.vendor_id)?;
writeln!(f, "Product Id: {}", usb.product_id)?;
writeln!(f, "Major device version: {}", usb.maj_device_version)?;
writeln!(f, "Minor device version: {}", usb.min_device_version)?;
})
}
}
impl From<libusb::Error> for USBError {
fn from(_e: libusb::Error) -> Self {
USBError {
err: "Error in accessing USB device".to_string(),
}
}
}
impl From<std::io::Error> for USBError {
fn from(e: std::io::Error) -> Self {
USBError { err: e.to_string() }
}
}
fn main() -> Result<(), USBError> {
// Get libusb context
let context = Context::new()?;
//Get list of devices
let mut device_list = USBList { list: vec![] };
for device in context.devices()?.iter() {
let device_desc = device.device_descriptor()?;
let device_handle = context
.open_device_with_vid_pid(device_desc.vendor_id(), device_desc.product_id())
.unwrap();
// For each USB device, get the information
let usb_details = get_device_information(device, &device_handle)?;
device_list.list.push(usb_details);
}
println!("\n{}", device_list);
write_to_file(device_list)?;
Ok(())
}
//Function to write details to output file
fn write_to_file(usb: USBList) -> Result<(), USBError> {
let mut file_handle = File::create("usb_details.txt")?;
write!(file_handle, "{}\n", usb)?;
Ok(())
}
// Function to print device information
fn get_device_information(device: Device, handle: &DeviceHandle) -> Result<USBDetails, USBError> {
let device_descriptor = device.device_descriptor()?;
let timeout = Duration::from_secs(1);
let languages = handle.read_languages(timeout)?;
let language = languages[0];
// Get device manufacturer name
let manufacturer = handle.read_manufacturer_string(language, &device_descriptor, timeout)?;
// Get device USB product name
let product = handle.read_product_string(language, &device_descriptor, timeout)?;
//Get product serial number
let product_serial_number =
match handle.read_serial_number_string(language, &device_descriptor, timeout) {
Ok(s) => s,
Err(_) => "Not available".into(),
};
// Populate the USBDetails struct
Ok(USBDetails {
manufacturer,
product,
serial_number: product_serial_number,
bus_number: device.bus_number(),
device_address: device.address(),
vendor_id: device_descriptor.vendor_id(),
product_id: device_descriptor.product_id(),
maj_device_version: device_descriptor.device_version().0,
min_device_version: device_descriptor.device_version().1,
})
}

@ -1 +0,0 @@
{"rustc_fingerprint":4503571881771466578,"outputs":{"1164083562126845933":["rustc 1.43.0 (4fb7144ed 2020-04-20)\nbinary: rustc\ncommit-hash: 4fb7144ed159f94491249e86d5bbd033b5d60550\ncommit-date: 2020-04-20\nhost: x86_64-apple-darwin\nrelease: 1.43.0\nLLVM version: 9.0\n",""],"4476964694761187371":["___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/Users/prabhueshwarla/.rustup/toolchains/stable-x86_64-apple-darwin\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_feature=\"ssse3\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n",""]},"successes":{}}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":3621830350570936802,"profile":14672114853574311971,"path":2918422908378029083,"deps":[[17887852849433168551,"bit_vec",false,8280595984277499454]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bit-set-682d8eb09608fa83/dep-lib-bit_set-682d8eb09608fa83"}}],"rustflags":[],"metadata":13317016770947644039}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[\"default\", \"std\"]","target":8339905256107492462,"profile":14672114853574311971,"path":1010628992309954238,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bit-vec-b9b783d7459bdc60/dep-lib-bit_vec-b9b783d7459bdc60"}}],"rustflags":[],"metadata":5453604409853202200}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[\"default\", \"std\"]","target":10088282520713642473,"profile":9935990280773120926,"path":10619365634165976244,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-10a3164e7c1d0cff/dep-build-script-build_script_build-10a3164e7c1d0cff"}}],"rustflags":[],"metadata":14998826085014762512}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[\"default\", \"std\"]","target":15220052048028810702,"profile":14672114853574311971,"path":8020386728756258790,"deps":[[16065926790896334425,"build_script_build",false,9533142304519840546]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-4bfa6b31d0f8f013/dep-lib-libc-4bfa6b31d0f8f013"}}],"rustflags":[],"metadata":14998826085014762512}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"","target":0,"profile":0,"path":0,"deps":[[16065926790896334425,"build_script_build",false,12239109499529899987]],"local":[{"Precalculated":"0.2.80"}],"rustflags":[],"metadata":0}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":6764225962941909233,"profile":14672114853574311971,"path":18009081827852394212,"deps":[[3102845238057669608,"libusb_sys",false,14010055146880192663],[16065926790896334425,"libc",false,4757173570306940459],[16895781795176096249,"bit_set",false,12642740472679815899]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libusb-3fd84f926025bf61/dep-lib-libusb-3fd84f926025bf61"}}],"rustflags":[],"metadata":5481159003887560878}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"","target":0,"profile":0,"path":0,"deps":[[3102845238057669608,"build_script_build",false,11496377053302790566]],"local":[{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_NO_PKG_CONFIG","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG","val":null}},{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH_x86_64-apple-darwin","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH_x86_64_apple_darwin","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_PATH","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR_x86_64-apple-darwin","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR_x86_64_apple_darwin","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_SYSROOT_DIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR","val":null}},{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG","val":null}},{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"LIBUSB_1.0_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH_x86_64-apple-darwin","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH_x86_64_apple_darwin","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_PATH","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR_x86_64-apple-darwin","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR_x86_64_apple_darwin","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_SYSROOT_DIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR","val":null}}],"rustflags":[],"metadata":0}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":8583280240666813861,"profile":14672114853574311971,"path":2222258066879320747,"deps":[[3102845238057669608,"build_script_build",false,6709486250405995028],[16065926790896334425,"libc",false,4757173570306940459]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libusb-sys-8c3b3f51971f2ae7/dep-lib-libusb_sys-8c3b3f51971f2ae7"}}],"rustflags":[],"metadata":13586501374425758046}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":10088282520713642473,"profile":9935990280773120926,"path":1740808248331818824,"deps":[[1091482576580977227,"pkg_config",false,8864002701427945456]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libusb-sys-a209c2998b87b745/dep-build-script-build_script_build-a209c2998b87b745"}}],"rustflags":[],"metadata":13586501374425758046}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":7631446115719786337,"profile":9935990280773120926,"path":1545346617936563855,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/pkg-config-9af6a31e8afeb3a2/dep-lib-pkg_config-9af6a31e8afeb3a2"}}],"rustflags":[],"metadata":6346311810227624339}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":11717903641847309453,"profile":14891217944882224483,"path":1036222786711178230,"deps":[[7538322115749554321,"libusb",false,18203167453604526164]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/usb-790a19229e308644/dep-bin-usb-790a19229e308644"}}],"rustflags":[],"metadata":13779719443416291531}

@ -1 +0,0 @@
{"rustc":12217307662193597186,"features":"[]","target":11717903641847309453,"profile":1647870076477133176,"path":1036222786711178230,"deps":[[7538322115749554321,"libusb",false,18203167453604526164]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/usb-84b7e780e349cf6e/dep-test-bin-usb-84b7e780e349cf6e"}}],"rustflags":[],"metadata":13779719443416291531}

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/build/libc-10a3164e7c1d0cff/build_script_build-10a3164e7c1d0cff: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/build.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/build/libc-10a3164e7c1d0cff/build_script_build-10a3164e7c1d0cff.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/build.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/build.rs:

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-10a3164e7c1d0cff</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

@ -1 +0,0 @@
This file has an mtime of when this was started.

@ -1,8 +0,0 @@
cargo:rustc-cfg=freebsd11
cargo:rustc-cfg=libc_priv_mod_use
cargo:rustc-cfg=libc_union
cargo:rustc-cfg=libc_const_size_of
cargo:rustc-cfg=libc_align
cargo:rustc-cfg=libc_core_cvoid
cargo:rustc-cfg=libc_packedN
cargo:rustc-cfg=libc_cfg_target_vendor

@ -1 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/build/libc-648b4d4032ace43a/out

@ -1,41 +0,0 @@
cargo:rerun-if-env-changed=LIBUSB_1.0_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBUSB_1.0_STATIC
cargo:rerun-if-env-changed=LIBUSB_1.0_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=LIBUSB_1.0_STATIC
cargo:rerun-if-env-changed=LIBUSB_1.0_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rustc-link-search=native=/usr/local/Cellar/libusb/1.0.23/lib
cargo:rustc-link-lib=usb-1.0
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBUSB_1.0_STATIC
cargo:rerun-if-env-changed=LIBUSB_1.0_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

@ -1 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/build/libusb-sys-5148a66b708d347f/out

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/build/libusb-sys-a209c2998b87b745/build_script_build-a209c2998b87b745: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-sys-0.2.3/build.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/build/libusb-sys-a209c2998b87b745/build_script_build-a209c2998b87b745.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-sys-0.2.3/build.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-sys-0.2.3/build.rs:

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-a209c2998b87b745</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/bit_set-682d8eb09608fa83.rmeta: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-set-0.2.0/src/lib.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/bit_set-682d8eb09608fa83.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-set-0.2.0/src/lib.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-set-0.2.0/src/lib.rs:

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/bit_vec-b9b783d7459bdc60.rmeta: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-vec-0.6.2/src/lib.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/bit_vec-b9b783d7459bdc60.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-vec-0.6.2/src/lib.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/bit-vec-0.6.2/src/lib.rs:

@ -1,34 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libc-4bfa6b31d0f8f013.rmeta: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/lib.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/macros.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/fixed_width_ints.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/windows/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/cloudabi/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/fuchsia/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/switch.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/psp.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/vxworks/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/hermit/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/sgx.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/wasi.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/uclibc/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/newlib/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/linux_like/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/solarish/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/solarish/compat.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/haiku/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/hermit/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/redox/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/netbsdlike/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/freebsdlike/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b32/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b64/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b64/align.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/align.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/no_align.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libc-4bfa6b31d0f8f013.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/lib.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/macros.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/fixed_width_ints.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/windows/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/cloudabi/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/fuchsia/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/switch.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/psp.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/vxworks/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/hermit/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/sgx.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/wasi.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/uclibc/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/newlib/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/linux_like/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/solarish/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/solarish/compat.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/haiku/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/hermit/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/redox/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/netbsdlike/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/freebsdlike/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b32/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b64/mod.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b64/align.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/align.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/no_align.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/lib.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/macros.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/fixed_width_ints.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/windows/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/cloudabi/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/fuchsia/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/switch.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/psp.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/vxworks/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/hermit/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/sgx.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/wasi.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/uclibc/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/newlib/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/linux_like/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/solarish/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/solarish/compat.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/haiku/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/hermit/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/redox/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/netbsdlike/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/freebsdlike/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b32/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b64/mod.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/bsd/apple/b64/align.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/align.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/unix/no_align.rs:

@ -1,17 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libusb-3fd84f926025bf61.rmeta: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/lib.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/error.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/version.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/context.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_list.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_handle.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/fields.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/config_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/interface_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/endpoint_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/language.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libusb-3fd84f926025bf61.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/lib.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/error.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/version.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/context.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_list.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_handle.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/fields.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/config_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/interface_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/endpoint_descriptor.rs /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/language.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/lib.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/error.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/version.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/context.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_list.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_handle.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/fields.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/device_descriptor.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/config_descriptor.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/interface_descriptor.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/endpoint_descriptor.rs:
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-0.3.0/src/language.rs:

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libusb_sys-8c3b3f51971f2ae7.rmeta: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-sys-0.2.3/src/lib.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libusb_sys-8c3b3f51971f2ae7.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-sys-0.2.3/src/lib.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/libusb-sys-0.2.3/src/lib.rs:

@ -1,7 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/pkg_config-9af6a31e8afeb3a2.rmeta: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/libpkg_config-9af6a31e8afeb3a2.rlib: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/pkg_config-9af6a31e8afeb3a2.d: /Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs
/Users/prabhueshwarla/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/usb-790a19229e308644.rmeta: src/main.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/usb-790a19229e308644.d: src/main.rs
src/main.rs:

@ -1,5 +0,0 @@
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/usb-84b7e780e349cf6e.rmeta: src/main.rs
/Users/prabhueshwarla/rust/author/packt/prod/chapter10/usb/target/rls/debug/deps/usb-84b7e780e349cf6e.d: src/main.rs
src/main.rs:

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save