-
Notifications
You must be signed in to change notification settings - Fork 5
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
usbio: migrate to nusb
instead of the libusb-rs
#10
Comments
I'm using You're suggesting |
Both are fine, it's just |
I gave it a shot: https://github.com/platform-system-interface/fastboot/tree/nusb The getvar example sorta works, but my target device hangs after it. I do get the expected reponse though. Any idea? I essentially rewrote the usbio crate based on https://github.com/probe-rs/probe-rs/blob/bba1bb553cc8b80902f498b7e7be4ba085197dcf/probe-rs/src/probe/usb_util.rs |
I figured it out: Per https://android.googlesource.com/platform/system/core/+/master/fastboot/README.md the read buffer must be max. 512 bytes for super speed, but the current code has |
The libusb wrapper is outdated. nusb is a fully native Rust USB library. This resolves JustPretender#10 <JustPretender#10>.
I've cleaned it up and pushed everything to https://github.com/platform-system-interface/fastboot Should we move there to continue discussions? Feel free to open issues, I just enabled it. :) |
Currently,
libusb-rs
is unmaintained. What's worse, latest Rust (1.79) isn't able to compile it anymore because of the cargo changes:Two most promising alternatives are:
The text was updated successfully, but these errors were encountered: