You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

hidapi

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hidapi - cargo Package Compare versions

Comparing version
1.2.1
to
1.2.2
+1
-1
.cargo_vcs_info.json
{
"git": {
"sha1": "a3358dd41ac2fe1cc81303490cbb2d7960fd8451"
"sha1": "8b20f9806c9a8bd91c419f6245048dde4ab11c76"
}
}

@@ -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",

@@ -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"

# hidapi [![Build Status](https://travis-ci.org/ruabmbua/hidapi-rs.svg?branch=master)](https://travis-ci.org/ruabmbua/hidapi-rs) [![Version](https://img.shields.io/crates/v/hidapi.svg)](https://crates.io/crates/hidapi) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Osspial/hidapi-rs/blob/master/LICENSE.txt) [![Documentation](https://docs.rs/hidapi/badge.svg)](https://docs.rs/hidapi) [![Chat](https://img.shields.io/badge/discord-devroom-blue.svg)](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 @@

@@ -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