Skip to content

Non numerical values for debuginfo cannot be parsed from cargo messages #240

@pacak

Description

@pacak

Valid values for debuginfo level now also include strings "line-tables-only" and "line-directives-only", see here.

cargo will emit those as part of json output. profile for an can look artifact look like this

"profile":{"opt_level":"3","debuginfo":"line-tables-only","debug_assertions":false,"overflow_checks":false,"test":false},

I'm trying to parse it into cargo_metadata::messages::Message datatype and it fails to parse it, probably because
ArtifactProfile defines debuginfo as Option<u32>

pacak/cargo-show-asm#187 - related ticket

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions