Skip to content

toml_edit support for integer types u64, i128, u128 #1114

@threema-mike

Description

@threema-mike

Hello toml_edit team,
For context, I am using toml_edit to write out TOML files with comments, generated from annotated Rust structs.
Since we want to be able to also use big integers for certain config options, and the toml crate supports big ints, I figured I'll try to get it working for toml_edit too.
This is a discussion basis, I assume that you might want to feature-gate it or follow a different approach. I am open to discuss and adapt to the needs.

For my use-case those changes make it work for serialising and deserialising, this is therefore a working proof of concept.

My current changes can be seen in the following comparison main...threema-mike:toml:bigint-support

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-editArea: TOML editing APIC-enhancementCategory: Raise on the bar on expectationsM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions