Add support for outputting integers as hexadecimal #812
Labels
A-edit
Area: TOML editing API
A-output
Area: Outputting TOML
C-enhancement
Category: Raise on the bar on expectations
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.The text was updated successfully, but these errors were encountered: