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

Update example to work with resolver 2 #43

Merged
merged 2 commits into from
Sep 12, 2021
Merged

Update example to work with resolver 2 #43

merged 2 commits into from
Sep 12, 2021

Conversation

amoskvin
Copy link
Contributor

With resolver = "2" (default in 2021 Edition), features need to be specified explicitly for build dependencies, otherwise when build.rs is run, it doesn't generate feature-gated values.

@@ -4,9 +4,10 @@ version = "0.1.0"
authors = ["Lukas Lueg <lukas.lueg@gmail.com>"]
build = "build.rs"
edition = "2018"
resolver = "2"
Copy link
Owner

Choose a reason for hiding this comment

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

What about backward compatibility here? We can just set the features explicitly for the build-time dependency without referring to the resolver-key

@amoskvin
Copy link
Contributor Author

amoskvin commented Sep 11, 2021 via email

@lukaslueg lukaslueg merged commit 5ba7426 into lukaslueg:master Sep 12, 2021
@lukaslueg
Copy link
Owner

Thanks!

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.

2 participants