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

chore: Specify resolver 2 for entire workspace #1406

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Conversation

flub
Copy link
Contributor

@flub flub commented Aug 25, 2023

Description

All the crates use edition 2021 which use this resolver, but the
workspace itself defaults to resolver 1. This creates confusion and
it is better to set everything to resolver 2.

Notes & open questions

This solves the following error since rust 1.72:

cargo-json-read-from-string: warning: some crates are on edition 2021 which defaults to ‘resolver = "2"‘, but virtual workspaces default to ‘resolver = "1"‘
note: to keep the current resolver, specify ‘workspace.resolver = "1"‘ in the workspace root’s manifest
note: to use the edition 2021 resolver, specify ‘workspace.resolver = "2"‘ in the workspace root’s manifest

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

All the crates use edition 2021 which use this resolver, but the
workspace itself defaults to resolver 1.  This creates confusion and
it is better to set everything to resolver 2.
@flub flub enabled auto-merge August 25, 2023 09:50
@flub flub added this pull request to the merge queue Aug 25, 2023
Merged via the queue into main with commit 38b06b0 Aug 25, 2023
15 checks passed
@flub flub deleted the flub/workspace-resolver branch August 25, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants