29 releases

0.8.2 Jul 16, 2024
0.7.1 Jul 19, 2024
0.7.0 Nov 13, 2023
0.6.1 Oct 15, 2022
0.4.2 Mar 18, 2020

#97 in Hardware support

Download history 1640/week @ 2024-04-03 1328/week @ 2024-04-10 1303/week @ 2024-04-17 1300/week @ 2024-04-24 1127/week @ 2024-05-01 1394/week @ 2024-05-08 1310/week @ 2024-05-15 1618/week @ 2024-05-22 1287/week @ 2024-05-29 1129/week @ 2024-06-05 995/week @ 2024-06-12 1176/week @ 2024-06-19 1083/week @ 2024-06-26 840/week @ 2024-07-03 1152/week @ 2024-07-10 1299/week @ 2024-07-17

4,508 downloads per month
Used in 24 crates (13 directly)

MIT/Apache

78KB
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

~5MB
~95K SLoC