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

#69 in Hardware support

Download history 831/week @ 2024-10-06 1450/week @ 2024-10-13 1584/week @ 2024-10-20 1454/week @ 2024-10-27 1342/week @ 2024-11-03 1005/week @ 2024-11-10 1347/week @ 2024-11-17 1891/week @ 2024-11-24 1671/week @ 2024-12-01 2417/week @ 2024-12-08 2843/week @ 2024-12-15 1525/week @ 2024-12-22 1868/week @ 2024-12-29 2668/week @ 2025-01-05 2609/week @ 2025-01-12 2515/week @ 2025-01-19

9,776 downloads per month
Used in 31 crates (17 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

~5.5MB
~101K SLoC