| { | ||
| "git": { | ||
| "sha1": "a3358dd41ac2fe1cc81303490cbb2d7960fd8451" | ||
| "sha1": "8b20f9806c9a8bd91c419f6245048dde4ab11c76" | ||
| } | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "hidapi" | ||
| version = "1.2.1" | ||
| version = "1.2.2" | ||
| dependencies = [ | ||
@@ -14,0 +14,0 @@ "cc", |
+1
-1
@@ -15,3 +15,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "hidapi" | ||
| version = "1.2.1" | ||
| version = "1.2.2" | ||
| authors = ["Roland Ruckerbauer <roland.rucky@gmail.com>", "Osspial <osspial@gmail.com>", "Artyom Pavlov <newpavlov@gmail.com>", "mberndt123", "niklasad1"] | ||
@@ -18,0 +18,0 @@ build = "build.rs" |
+1
-1
| # hidapi [](https://travis-ci.org/ruabmbua/hidapi-rs) [](https://crates.io/crates/hidapi) [](https://github.com/Osspial/hidapi-rs/blob/master/LICENSE.txt) [](https://docs.rs/hidapi) [](https://discordapp.com/invite/3ahhJGN) | ||
| This crate provides a rust abstraction over the features of the C library | ||
| [hidapi](https://github.com/signal11/hidapi) by signal11. Based off of | ||
| [hidapi](https://github.com/libusb/hidapi). Based off of | ||
| [hidapi-rs](https://github.com/Osspial/hidapi-rs) by Osspial. | ||
@@ -6,0 +6,0 @@ |
+12
-2
@@ -27,4 +27,4 @@ // ************************************************************************** | ||
| //! Ok(api) => { | ||
| //! for device in api.devices() { | ||
| //! println!("{:#?}", device); | ||
| //! for device in api.device_list() { | ||
| //! println!("{:04x}:{:04x}", device.vendor_id(), device.product_id()); | ||
| //! } | ||
@@ -50,2 +50,3 @@ //! }, | ||
| use std::ffi::CString; | ||
| use std::fmt; | ||
| use std::mem::ManuallyDrop; | ||
@@ -408,2 +409,11 @@ use std::sync::atomic::{AtomicBool, Ordering}; | ||
| impl fmt::Debug for DeviceInfo { | ||
| fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
| f.debug_struct("HidDeviceInfo") | ||
| .field("vendor_id", &self.vendor_id) | ||
| .field("product_id", &self.product_id) | ||
| .finish() | ||
| } | ||
| } | ||
| impl Into<HidDeviceInfo> for DeviceInfo { | ||
@@ -410,0 +420,0 @@ fn into(self) -> HidDeviceInfo { |
Sorry, the diff of this file is not supported yet