hid_types/lib.rs
1//! # Rust types for working with USB HID report descriptors.
2//!
3//! This crate contains Rust types for encoding and decoding USB HID (Human Interface Device)
4//! report descriptors. It contains all of the constants from the HID specifications, as well
5//! as code to encode and decode binary report descriptors.
6//!
7//! It's mostly intended for use by the `hid-descriptor` and `hid-decode` crates.
8//!
9//! See [Device Class Definition for Human Interface Devices](https://www.usb.org/document-library/device-class-definition-hid-111)
10//! for a detailed description of HID report descriptors.
11
12#![warn(clippy::print_stderr, clippy::print_stdout, clippy::dbg_macro)]
13#![warn(clippy::todo)]
14#![warn(missing_docs)]
15#![no_std]
16
17#[cfg(feature = "std")]
18extern crate std;
19
20pub mod id;
21
22pub mod encoding;
23pub mod hid;
24pub mod item;
25
26pub use id::ident::Ident;