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

made libusb types public and opaque #19

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

thajohns
Copy link

This PR replaces the private libusb_ types with opaque public types in the fashion suggested by the Rustonomicon when the libusb1-sys feature is off, so that there are not private types in the public API.

Copy link

@emberian emberian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, TIL this pattern

@tanriol
Copy link
Owner

tanriol commented Dec 11, 2023

Thank you for the contribution. Hm, looks like I need to check in Cargo.lock for the MSRV tests to be reliable in the long run. Don't have the time to recheck this manually right now, so I'll check and hopefully merge this PR tomorrow.

@tanriol tanriol self-assigned this Dec 11, 2023
@tanriol tanriol merged commit 0fb2f74 into tanriol:master Dec 13, 2023
4 of 7 checks passed
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.

3 participants