Decision Workspace
usbd-human-interface-device vs hid-api-rs vs keycode
Side-by-side comparison of Rust crates
46
usbd-human-interface-device
growingv0.6.0
Batteries included embedded USB HID library for usb-device. Includes concrete Keyboard (boot and NKRO), Mouse, Joystick and Consumer Control implementations as well as support for building your own HID classes.
44
hid-api-rs
growingv3.0.1
Hardware proxy for injecting & intercepting keyboard/mouse inputs
53
keycode
growingv1.0.0
A Rust crate for translating keycodes based on Chrome's mapping of keys.
Core Metrics
| usbd-human-interface-device | hid-api-rs | keycode | |
|---|---|---|---|
| Health Score | 46 | 44 | 53 |
| Total Downloads | 41.9K | 8.6K | 134.7K |
| 30d Downloads | 0 | 0 | 9.1K |
| Dependents | 5 | 0 | 80 |
| Releases | 18 | 7 | 9 |
| Last Updated | 372d ago | 729d ago | 432d ago |
| Age | 4y 1m | 2y 11m | 7y 4m |
Health Breakdown
usbd-human-interface-device
Maintenance
8
Quality
11
Community
8
Popularity
6
Documentation
13
hid-api-rs
Maintenance
4
Quality
19
Community
6
Popularity
5
Documentation
10
keycode
Maintenance
5
Quality
19
Community
11
Popularity
6
Documentation
12
Technical Details
| usbd-human-interface-device | hid-api-rs | keycode | |
|---|---|---|---|
| Version | 0.6.0 | 3.0.1 | 1.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | GPL-2.0-or-later | MIT |
| Dependencies | 10 | 5 | 5 |
| Crate Size | 40KB | 27KB | 5KB |
| Features | 1 | 0 | 1 |
| Yanked % | 5.6% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •keycode leads with a health score of 53/100, but none of the options score above 80.
- •⚠ usbd-human-interface-device, hid-api-rs, keycode have not been updated in over a year.
- •usbd-human-interface-device is pre-1.0 — API may change.