Skip to content

Cargo.toml members can not use * #8861

Closed

Description

If I write Cargo.toml like this:

workspace
members = [
    "project_1",
    "project_2",
    "project_3/*",

And the project_3 have some directories and files, then the cargo build will be error.
Sometimes I wish to place readme.md in project_3 directory, at the sometime I want to write Cargo.toml with "*", then this problem occurs.
I think the cargo should know the readme.md is a file instead of directory, and the error above shouldn't occur.
Wish rust to be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions