Skip to content

Detect incorrectly named cargo.toml #9541

Closed
@pnkfelix

Description

@pnkfelix

A new user following tutorials won't necessarily use cargo new; they may create files by hand.

In practice, I have found that such users may accidentally create cargo.toml instead of Cargo.toml.

If Cargo.toml is missing, cargo should detect the presence of a file like cargo.toml and suggest that the user rename it to Cargo.toml.

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-easyExperience: Easy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions