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

#83 in Hardware support

Download history 594/week @ 2024-01-15 534/week @ 2024-01-22 352/week @ 2024-01-29 515/week @ 2024-02-05 578/week @ 2024-02-12 1066/week @ 2024-02-19 1211/week @ 2024-02-26 1910/week @ 2024-03-04 2138/week @ 2024-03-11 1497/week @ 2024-03-18 1456/week @ 2024-03-25 1520/week @ 2024-04-01 1303/week @ 2024-04-08 1353/week @ 2024-04-15 1266/week @ 2024-04-22 1253/week @ 2024-04-29

5,333 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
~71K SLoC