24 releases

0.7.0 Nov 13, 2023
0.6.1 Oct 15, 2022
0.6.0 Apr 30, 2022
0.5.2 Sep 24, 2021
0.4.2 Mar 18, 2020

#94 in Hardware support

Download history 384/week @ 2024-01-27 431/week @ 2024-02-03 554/week @ 2024-02-10 976/week @ 2024-02-17 1292/week @ 2024-02-24 1783/week @ 2024-03-02 2115/week @ 2024-03-09 1589/week @ 2024-03-16 1500/week @ 2024-03-23 1071/week @ 2024-03-30 1687/week @ 2024-04-06 1348/week @ 2024-04-13 1334/week @ 2024-04-20 1218/week @ 2024-04-27 1237/week @ 2024-05-04 1281/week @ 2024-05-11

5,199 downloads per month
Used in 22 crates (12 directly)

MIT/Apache

77KB
1.5K SLoC

usbd-hid

Crates.io usbd-hid

USB HID implementation for usb-device.

Also implements a cheeky procedural macro for generating HID descriptors.

Examples:


lib.rs:

HID report descriptor generation & USB HID class implementation

This crate implements components necessary to build a USB HID device. This includes generation of the report descriptor, serialization of input reports, and communicating with a host that implements USB HID.

Dependencies

~3.5MB
~72K SLoC