2 releases

0.1.1 Mar 2, 2023
0.1.0 Oct 2, 2022

#29 in #usb-hid

Download history 10/week @ 2024-02-19 32/week @ 2024-02-26 9/week @ 2024-03-04 13/week @ 2024-03-11

64 downloads per month
Used in 3 crates

MIT license

68KB
1.5K SLoC

HID Gadget Emulation in Rust

github crate docs MIT CI

Rust crate for interfacing with Linux HID Gadget devices (/dev/hidgX).

Since all functionality is dependent on Linux function calls, this crate only compiles for Linux systems.

Crates

Features

  • fromstr - implements core::str::FromStr implementation for some types
  • display - implements std::fmt::Display implementation for some types
  • phf - use phf in core::str::FromStr trait implementations
  • serde - enables serde support for some types
  • keyboard - enables keyboard class support
  • mouse - enables mouse class support

Dependencies

~0.7–1.3MB
~28K SLoC