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

#103 in Hardware support

Download history 559/week @ 2024-02-07 577/week @ 2024-02-14 1145/week @ 2024-02-21 1737/week @ 2024-02-28 2080/week @ 2024-03-06 1833/week @ 2024-03-13 1666/week @ 2024-03-20 976/week @ 2024-03-27 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 1416/week @ 2024-05-22

5,566 downloads per month
Used in 23 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