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

Ensure compatibility with 2021 edition by working around cargo featur… #2902

Merged
merged 1 commit into from Sep 18, 2021

Conversation

weiznich
Copy link
Member

…e resolver related breaking changes

Addresses #2753 as this will unfortunately become the new default in the 2021 edition (regardless that this seems to be in conflict with any of the guarantees given which changes are allowed at edition boundary)
CC rust-lang/rust#88903

@pksunkara
Copy link
Member

Am I right in understanding that we don't need this change for master?

@weiznich
Copy link
Member Author

The underlying problem happens because diesel is a direct and a build time dependency for diesel_migrations. The new feature resolver doesn't unify any features between those two diesel versions anymore, but it does unify features for diesel_derives. This leads to a situation where diesel_derives is generating code for the build time diesel version which depends on features that are disabled.
This cannot happen on master anymore as we removed the build time dependency on diesel from diesel_migrations.

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