-
-
Notifications
You must be signed in to change notification settings - Fork 147
toml_edit support for integer types u64, i128, u128 #1114
Copy link
Copy link
Open
Labels
A-editArea: TOML editing APIArea: TOML editing APIC-enhancementCategory: Raise on the bar on expectationsCategory: Raise on the bar on expectationsM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.Meta: Implementing or merging this will introduce a breaking change.
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-editArea: TOML editing APIArea: TOML editing APIC-enhancementCategory: Raise on the bar on expectationsCategory: Raise on the bar on expectationsM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.Meta: Implementing or merging this will introduce a breaking change.