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

#49 in Hardware support

Download history 1449/week @ 2024-09-18 1794/week @ 2024-09-25 1157/week @ 2024-10-02 913/week @ 2024-10-09 1624/week @ 2024-10-16 1676/week @ 2024-10-23 1353/week @ 2024-10-30 1121/week @ 2024-11-06 1064/week @ 2024-11-13 1741/week @ 2024-11-20 1807/week @ 2024-11-27 1693/week @ 2024-12-04 2946/week @ 2024-12-11 2116/week @ 2024-12-18 1530/week @ 2024-12-25 2811/week @ 2025-01-01

9,720 downloads per month
Used in 33 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