[PR #51] [MERGED] Fix serde numeric keys #45

Closed
opened 2026-05-22 22:05:18 +01:00 by JakeStanger · 0 comments
Owner

📋 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: masterHead: fix/serde-numeric-keys


📝 Commits (2)

  • 04d6777 chore(deps): tidy and update
  • 419c7e6 fix: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/corn-config/corn/pull/51 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 1/23/2026 **Status:** ✅ Merged **Merged:** 1/23/2026 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `fix/serde-numeric-keys` --- ### 📝 Commits (2) - [`04d6777`](https://github.com/corn-config/corn/commit/04d6777f3896f47964f0601cbb5bd568034a02ca) chore(deps): tidy and update - [`419c7e6`](https://github.com/corn-config/corn/commit/419c7e6989754ff416a68301f4a3de35f212ba35) fix: unable to deserialize into numeric keys ### 📊 Changes **13 files changed** (+443 additions, -310 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 22:05:18 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
corn-config/corn#45
No description provided.