Skip to content
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 rusb (libusb bindings) with native Rust #17

Closed
hardBSDk opened this issue May 9, 2024 · 4 comments · Fixed by #26
Closed

Replace rusb (libusb bindings) with native Rust #17

hardBSDk opened this issue May 9, 2024 · 4 comments · Fixed by #26
Labels
enhancement New feature or request

Comments

@hardBSDk
Copy link

hardBSDk commented May 9, 2024

No description provided.

@tuna-f1sh
Copy link
Owner

Not personally but nusb is on my radar. It would be a pure Rust solution rather than libusb but not explored whether porting would be possible yet. Open to contributions if you're interested in exploring.

@tuna-f1sh tuna-f1sh changed the title (Question) Do you plan to rewrite libusb in Rust? Replace rusb (libusb bindings) with native Rust crate May 13, 2024
@tuna-f1sh tuna-f1sh changed the title Replace rusb (libusb bindings) with native Rust crate Replace rusb (libusb bindings) with native Rust May 13, 2024
@tuna-f1sh tuna-f1sh added enhancement New feature or request help wanted Extra attention is needed labels May 13, 2024
tuna-f1sh added a commit that referenced this issue Jun 18, 2024
@tuna-f1sh
Copy link
Owner

@hardBSDk if you interested in testing this, the PR #26 can be built with pure Rust using --no-default-features -F=native.

@hardBSDk
Copy link
Author

@tuna-f1sh It works but don't show the xHCI ports.

@tuna-f1sh
Copy link
Owner

Yes this was actually a change I made because by default nusb does not list xHCI (root_hubs). It made me re-think the default list and not to show them. The lsusb mode will though (since it does): cargo run --no-default-features -F=native -- --lsusb.

Do you think they are useful in the list output? I figured not since they are not something one does anything with. They are presented in --tree to show which root_hub devices are attached - I think this is useful.

@tuna-f1sh tuna-f1sh removed the help wanted Extra attention is needed label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants