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

Implement support for non-exhaustive enums #117

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

FreezyLemon
Copy link

This PR requires this ffmpeg-sys-next PR to be merged first.

This PR adds the feature "non-exhaustive-enums" as requested in zmwangx/rust-ffmpeg-sys#46. This allows users to compile the ffmpeg-next crate(s) even when their locally installed FFmpeg dev files are newer than the target version.

Disabling the feature can be useful for library devs when updating ffmpeg-next to a newer version of FFmpeg. By disabling it, the compiler will error on enum matches that don't handle all enum values (making it harder to miss new enum values)

I think including this as a default feature is useful.

@FreezyLemon
Copy link
Author

@Polochon-street @zmwangx Excuse the ping, but I think this one of the simpler PRs that will help a lot of users living on the bleeding edge (mostly Arch users). I'd really appreciate some response so we can get this merged before the next release.

@ThatNerdUKnow
Copy link

Making a note that this would resolve #126

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.

None yet

2 participants