Skip to content

crates.io's TOML snippet with metadata produces warnings when used in Cargo.toml #8073

Description

@epage

Current Behavior

On https://crates.io/crates/curl-sys, the following is listed

curl-sys = "0.4.71+curl-8.6.0"

Expected Behavior

On https://crates.io/crates/curl-sys, the following is listed

curl-sys = "0.4.71"

Steps To Reproduce

  1. Go to https://crates.io/crates/curl-sys
  2. See TOML snippet
  3. Add this to your Cargo.tom
  4. Run cargo check
$ cargo check
warning: /home/epage/src/personal/cargo/Cargo.toml: version requirement `0.4.71+curl-8.6.0` for dependency `curl-sys` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion

Environment

  • Browser:
  • OS:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    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