Skip to content

support TOML v1.1.0 in Cargo.toml #16447

@chirizxc

Description

@chirizxc

Problem

https://github.com/toml-lang/toml/releases/tag/1.1.0

I think it would be convenient to write dependencies in this format:

[dependencies]
mimalloc = {
    version = "0.1.48",
    features = ["v3", "override", "local_dynamic_tls"],
    optional = true,
}

# or

mimalloc = {
    version = "0.1.48",
    features = [
        "v3",
        "override",
        "local_dynamic_tls"
    ],
    optional = true,
}

Instead of:

[dependencies]
mimalloc = { version = "0.1.48", features = ["v3", "override", "local_dynamic_tls"], optional = true }

# or
# since this separates it from the main dependency block `[dependencies]`
[dependencies.mimalloc]
version = "0.1.48"
features = ["v3", "override", "local_dynamic_tls"]
optional = true

Metadata

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`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions