Releases: kevinmehall/nusb
Releases · kevinmehall/nusb
v0.1.12
v0.1.11
Fixes
- macOS: Fix
Device::set_configuration
andDevice::reset
(#88) - macOS: Fix detection of
TransferError::Stall
(#88)
New Features
- Hotplug events:
nusb::watch_devices()
API for device connect / disconnect event notifications, supported on Windows, macOS, and Linux. (#20) Device::from_fd
for wrapping an already-opened usbfs file descriptor. This can be used with the Android APIs for requesting USB device permissions on a non-rooted Android device. (#80)Device::detach_kernel_driver
andDevice::attach_kernel_driver
for controlling kernel drivers on Linux without claiming an interface (#65)
Contributors
v0.1.10
Fixes
- windows: Fix speed detection for SuperSpeed and SuperSpeed+ by @kevinmehall and @wangxiaochuTHU in #56
- windows: Handle
ERROR_OPERATION_ABORTED
result when a transfer is cancelled by @martinling in #63 - macos: Fix listing of devices where bus number > 0x80 by @kevinmehall in #67
New Contributors
- @baloo made their first contribution in #55
- @martinling made their first contribution in #62
- @wangxiaochuTHU made their first contribution inhttps://github.com//pull/56
Full Changelog: v0.1.9...v0.1.10
v0.1.9
Fixes
- macOS: Update endpoints when interface alt setting is changed by @alexmoon in #50
- macOS: Don't panic when passed an invalid endpoint address
Improvements
- Extend the lifetime of objects returned from
Configuration::descriptors
,Configuration::interface_alt_settings
, andConfiguration::interfaces
by @kevinmehall in #51 - Add
Interface::interface_number
andInterface::descriptors
methods by @kevinmehall in #51
Full Changelog: v0.1.8...v0.1.9
v0.1.8
v0.1.7
New features
- Add
Interface::clear_halt
andQueue::clear_halt
- #46
Fixes
- windows: Allow opening interfaces of a composite device that use the registry key
DeviceInterfaceGUID
rather thanDeviceInterfaceGUIDs
- #39 - windows: Fix crash when calling
Interface::set_alt_setting
- windows: Improve error message when attempting to claim an interface not associated with WinUSB driver - #41
- windows: Document and warn on case where WinUSB changes the passed control transfer
index
field to the interface number - #45 - linux: Fix build on s390x and when using rustix libc backend - #44
- Lower log level to
debug!()
for errors in enumeration. - #40
Contributors
@elfmimi @jonlamb-gh @kevinmehall
Full Changelog: v0.1.6...v0.1.7
v0.1.6
Fixes
Full Changelog: v0.1.5...v0.1.6
v0.1.5
v0.1.4
Fixes
- Add sysfs_path returning &Path, deprecate path() by @Dirbaio in #21
- windows: Return correct product string. by @Dirbaio in #27
- windows: Stop returning incorrect manufacturer string by @kevinmehall in #32
- Mark Queue::next_complete Future Unpin + Send + Sync @kevinmehall in #30
New features
- Add Queue::poll_next by @kevinmehall in #30
- Add DeviceInfo::interfaces for OS cached interface information by @kevinmehall in #29
Full Changelog: v0.1.3...v0.1.4
v0.1.3
New features
- Add
Device::active_configuration
,Device::configurations
,Configuration
,InterfaceGroup
,InterfaceAltSetting
,Endpoint
,Descriptor
for obtaining configuration descriptors and parsing them by @kevinmehall in #13 - Add
Device::get_descriptor
,Device::get_string_descriptor
,Device::get_string_descriptor_supported_languages
for fetching additional descriptors from the device by @kevinmehall in #15 - Add
Device::control_in_blocking
,Device::control_out_blocking
,Interface::control_in_blocking
,Interface::control_out_blocking
for non-async control transfers.
Fixes
- macOS: Allow event loop to re-start after closing all devices then opening another by @jamesmunns in #19
- macOS: Prevent opening the wrong device if you hold onto a
DeviceInfo
while another device is plugged into the same port by @kevinmehall in #14 - Move futures-lite to dev-dependencies by @jwnrt in #16
Other
- windows: Use cfgmgr32 instead of SetupAPI by @kevinmehall in #17
New Contributors
- @jwnrt made their first contribution in #16
- @jamesmunns made their first contribution in #19
Full Changelog: v0.1.2...v0.1.3