Skip to content

Add support for outputting integers as hexadecimal #812

@MatthewMorozov

Description

@MatthewMorozov

When using serde to serialize a data structure containing integers (u32, i16, etc) to TOML format, I would like the fields to be written in the generated TOML file in hexadecimal format. TOML format supports hexadecimal numbers, and this feature would make it easier to read fields such as 32-bit addresses. This may could be an option such as #[serde_with_format = "{:0X}"] above integer-type fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-editArea: TOML editing APIA-outputArea: Outputting TOMLC-enhancementCategory: Raise on the bar on expectations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions