Skip to content

cargo init or cargo new Cargo.toml don't respect workspace exclude #13235

@kzhui125

Description

@kzhui125

Problem

when I have a workspace, exclude data:

[workspace]
resolver = "2"
members = ["crates/*"]
exclude = ["data"]

then I create a new crate in data folder:

The Cargo.toml will be:

version.workspace = true
edition.workspace = true

instead of

version = "0.1.0"
edition = "2021"

I have to change it manually.

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions