Skip to content

v1.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Nov 12:52
· 5 commits to main since this release

A release of patches, PRs and merges :), thanks to support

Added

  • Support udev/sysfs iString lookup (#14) (@haata).
  • Add fully defined USB Device based on class code triplet.
  • Support bLength, wTotalLength and bDescriptorType fields in lsusb --verbose with (rusb/#185). This completes the lsusb --verbose support apart from extra descriptors (WIP: #15).
  • Add lsusb::names mod that ports 'usbutils/names.c' to match the behaviour using lsusb --verbose. This means class, sub-class and protocol udev-hwdb names are included now in lsusb --verbose (b99e87).
  • Add the display blocks uid-class, uid-subc-lass, uid-protocol, class, and class-value for DeviceBlocks and InterfaceBlocks. These are also added for --more.
  • Add feature=udev_hwdb to guard against systems that have udev but not hwdb support (cross/#1377)/(libudev-sys/#16).

Changed

  • 'usb-ids' crate is now a dependency rather than optional to support lsusb::names lookup without udev_hwdb (non-Linux). (usb-ids.rs/#50) will add extra descriptor parsing in future.
  • iString descriptors will now be retrieved in order libusb descriptor -> sysfs cache (Linux) -> udev_hwdb (bundled usb-ids --feature=udev_hwdb) -> usb-ids.

Fixes

  • Fix ClassCode as u8 in lsusb --verbose being enum index not repr(c) base class byte.
  • Fix ClassCode as u8 in icon serializer being enum index not repc(c) base class byte.