Skip to content

Wrong enum variants in the schema #17201

Description

@boozook

Problem

"None",
"LineDirectivesOnly",
"LineTablesOnly",
"Limited",
"Full"

☝🏻There is Capitalized camel-case, but cargo throws error and requires lowercase-kebab-cased names.

Error:

error: invalid value: string "Full", expected a boolean, 0, 1, 2, "none", "limited", "full", "line-tables-only", or "line-directives-only"
   --> Cargo.toml:203:9
    |
203 | debug = "Full"

Steps

How to test schema and reproduce the problem:

  1. get taplo (or any tool that you prefer)
  2. validate any your Cargo.toml with those options that is TomlDebugInfo's enum-variants,
  • e.g. with
    [profile.dev]
    debug = "Full"

command for third step:

taplo check Cargo.toml —verbose \
  --schema=https://raw.githubusercontent.com/rust-lang/cargo/refs/heads/master/crates/cargo-util-schemas/manifest.schema.json

Possible Solution(s)

Probably just add rename-rule-attrs. 🤷🏻‍♂️

Notes

No response

Version

cargo 1.99.0-nightly (59800466c 2026-07-07)
release: 1.99.0-nightly
commit-hash: 59800466c5c41c444d264b1010b4d57e85a7117f
commit-date: 2026-07-07
host: aarch64-apple-darwin
libgit2: 1.9.4 (sys:0.21.0 vendored)
libcurl: 8.7.1 (sys:0.4.90+curl-8.21.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 3.6.3 9 Jun 2026
os: Mac OS 15.7.7 [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions