Cargo Features

[dependencies]
hidapi = { version = "2.6.3", default-features = false, features = ["linux-static-libusb", "linux-static-hidraw", "linux-shared-hidraw", "linux-native", "illumos-static-libusb", "macos-shared-device", "windows-native"] }
default = illumos-static-libusb, linux-static-hidraw

These default features are set whenever hidapi is added without default-features = false somewhere in the dependency tree.

linux-static-libusb
linux-static-hidraw default
linux-shared-libusb linux-shared-hidraw
linux-native

Enables nix ^0.27 and udev ^0.8

illumos-static-libusb default
illumos-shared-libusb macos-shared-device
windows-native

Enables Win32…DeviceAndDriverInstallation, Win32_Devices_HumanInterfaceDevice, Win32_Devices_Properties, Win32_Security, Win32_Storage_EnhancedStorage, Win32_Storage_FileSystem, Win32_System_IO, Win32_System_Threading and Win32_UI_Shell_PropertiesSystem of windows-sys ^0.48

HidApi has 8 features without comments.