Skip to content

Documentation about maintenance field confusing #7691

Closed
@danielparks

Description

@danielparks

Problem
According to The Manifest Format, the maintenance key is required. However, the setting the key causes a warning to be displayed (“warning: unused manifest key: package.maintenance”) when running various cargo commands, including cargo check.

Update: the documentation for the [package] and [badges] sections were mixed together. In particular, there is no heading for [badges], and part of the documentation for [package] was below information about [badges].

Steps

  1. Create a new cargo package
  2. Add maintenance = { status = "actively-developed" } to the [package] section of Cargo.toml.
  3. Run cargo check:
❯ cargo check   
warning: unused manifest key: package.maintenance
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s

Possible Solution(s)
I’m not sure if this is a documentation issue or a code issue. cargo itself doesn’t seem to do anything with the key, but crates.io appears to have code related to it.

Notes

❯ cargo --version
cargo 1.39.0 (1c6ec66d5 2019-09-30)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions