mirror of
https://github.com/corn-config/corn.git
synced 2026-07-11 06:16:07 +01:00
[GH-ISSUE #4] Ability to deserialize into a struct #4
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#4
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?
Originally created by @JakeStanger on GitHub (Jan 27, 2022).
Original GitHub issue: https://github.com/corn-config/corn/issues/4
Currently
cornfig::parsereturns the a tree of parsed values which isn't super useful for library use. Aserde::Deserializerimplementation should be written to attempt to deserialize into structs.It's possible to serialize the Corn output using serde then deserialize it again, but this comes with a lot of overhead and requires shipping another format library.
@JakeStanger commented on GitHub (Jan 28, 2022):
Similar project that does this that might be worth looking at: https://github.com/ron-rs/ron