-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace libusb with pure Rust nusb #26
Conversation
696fa98
to
eb73ab9
Compare
Some notes:
|
e8f7cd9
to
f47d1b1
Compare
26744b5
to
d6708a1
Compare
nusb is actually more feature rich than libusb with my added
Considering this, I'll make 'native' the default and probably change behaviour on macOS so that is uses this rather than |
09f2ad5
to
69d812f
Compare
e4b898e
to
4cc5d9b
Compare
Creates a
Profiler
trait that provides both libusb and nusb system USB profilers. I've kept 'libusb' as an optional feature for those wishing to keep using that and for exact parity withlsusb
; they should both output the same butlsusb
uses libusb of course.Since nusb uses IOkit (same asleft this as a TODO one day.system_profiler
command), use this for all macOS profiling by default instead of parsingsystem_profiler
or at least default merge if different - bus names seem to be missing.Wait for release with Add DeviceInfo::port_chain kevinmehall/nusb#71 to not have [patch.io] in Crate.toml.Need my fork at the moment anyway for listing hubs in devices on Windows.Closes #17.