Skip to content

Conversation

chrysn
Copy link
Contributor

@chrysn chrysn commented May 20, 2025

This affects only Linux and "won't expose as much information and may return ports that don't exist physically", but it does expose VID/PID and serial number, and the nonexisting devices should not affect USB either.


The reason to do this is to cut build dependencies. (The underlying effort in serialport was done for probe-rs for the benefit of not pulling libudev as a build dependency in there).

In theory this might speed up builds, but my timings vary too much to say whether the speedup is significant.

This affects only Linux and "won't expose as much information and may
return ports that don't exist physically", but serialport does still
obtain VID/PID and serial number (which are what this crate looks into),
and the nonexisting devices should not affect USB either.
@chrysn chrysn mentioned this pull request May 20, 2025
@jonathanpallant
Copy link
Collaborator

LGTM - I wanted to remove libusb from the exercise code too, using nusb.

@jonathanpallant jonathanpallant merged commit c9deffa into knurling-rs:main May 20, 2025
4 checks passed
@chrysn chrysn deleted the no-udev branch May 20, 2025 12:49
chrysn added a commit to chrysn-pull-requests/nrfdfu-rs that referenced this pull request May 21, 2025
Those have not been needed since [27].

[27]: knurling-rs#27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants