The issue with HidApi::new_without_enumerate() is that it makes both it and HidApi::new() potentially panic, with no way out in library contexts.
Instead, on platforms that need it, the same effect can be achieved by calling the newly added HidApi::disable_device_discovery() before any HidApi contexts are created.
The issue with
HidApi::new_without_enumerate()
is that it makes both it andHidApi::new()
potentially panic, with no way out in library contexts.Instead, on platforms that need it, the same effect can be achieved by calling the newly added
HidApi::disable_device_discovery()
before any HidApi contexts are created.