Skip to content

Clarify crate resolver version mismatch warning #12557

@algesten

Description

@algesten

Problem

Today I noticed this warning:

warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`

The problem is that it doesn't explain why I should care about this resolver mismatch. Since my project compiles and everything seems fine, it's unclear.

Proposed Solution

I can of course google the reason, but I similarly think this warning is not up to Rust's usual high standards of warning/error feedback. Maybe it at least could have a link to where I can read about why this matters?

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Error and warning messages generated by Cargo itself.A-features2Area: issues specifically related to the v2 feature resolverA-workspacesArea: workspacesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-easyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions