mirror of
https://github.com/corn-config/corn.git
synced 2026-07-11 04:16:07 +01:00
[PR #51] [MERGED] Fix serde numeric keys #45
Labels
No labels
bug
bug
documentation
enhancement
enhancement
pull-request
tooling
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
corn-config/corn#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/corn-config/corn/pull/51
Author: @JakeStanger
Created: 1/23/2026
Status: ✅ Merged
Merged: 1/23/2026
Merged by: @JakeStanger
Base:
master← Head:fix/serde-numeric-keys📝 Commits (2)
04d6777chore(deps): tidy and update419c7e6fix: unable to deserialize into numeric keys📊 Changes
13 files changed (+443 additions, -310 deletions)
View changed files
📝
Cargo.lock(+361 -283)📝
Cargo.toml(+3 -6)➕
assets/inputs/numeric_keys.corn(+3 -0)➕
assets/outputs/json/numeric_keys.json(+7 -0)➕
assets/outputs/toml/numeric_keys.toml(+4 -0)➕
assets/outputs/yaml/numeric_keys.yml(+5 -0)📝
cli/Cargo.toml(+2 -3)📝
src/de.rs(+2 -2)📝
src/grammar.pest(+1 -1)📝
src/lib.rs(+30 -1)📝
src/parser.rs(+16 -14)📝
tests/de_tests.rs(+7 -0)📝
tests/parser_tests.rs(+2 -0)📄 Description
This fixes a case where you may wish to deserialise into a Map of type eg
HashMap<i32, T>which previously failed as keys were exclusively handled as string.All integer types are now supported.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.