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

server: Don't unify features of host and target dependencies #1182

Merged
merged 1 commit into from Feb 5, 2024

Conversation

svix-jplatte
Copy link
Member

@svix-jplatte svix-jplatte commented Feb 5, 2024

Motivation

Extracted from #1129.
The second version of the resolver is the default for edition 2021+ crates, but for workspaces it has to be set like this because there is no workspace.edition.

Solution

Set resolver = "2" to avoid Cargo feature unification between host (proc-macro / build script) dependencies and target (regular) dependencies. Could improve or worsen compile times, but for runtime and code size it can only realistically improve things. It's also good for forwards compatibility.

@svix-jplatte svix-jplatte requested a review from a team February 5, 2024 12:31
@svix-gabriel svix-gabriel merged commit e26da0f into main Feb 5, 2024
4 checks passed
@svix-gabriel svix-gabriel deleted the jplatte/resolver2 branch February 5, 2024 13:02
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