Skip to content

Simple serde array format #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Simple serde array format #9

wants to merge 8 commits into from

Conversation

kylecarow
Copy link
Collaborator

@kylecarow kylecarow commented May 7, 2025

Provides an alternate, simplified serde format to be the default serialization format, while also accepting the standard ndarray formats (backwards compatible).

This is basically finished, it just requires RReverser/serde-ndim#2 to be merged (and Cargo.toml changed accordingly) before merging.

cc @calbaker

@kylecarow kylecarow force-pushed the simple-serde-arrays branch from 5aae0fe to 328d21f Compare May 7, 2025 18:45
@kylecarow kylecarow force-pushed the simple-serde-arrays branch from 2749c12 to 283c9fe Compare May 8, 2025 21:18
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@calbaker check it out!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://github.com/NREL/ninterp/blob/simple-serde-arrays/src/serde.rs for how i did it (spoiler: serde(untagged) enums)

@kylecarow kylecarow force-pushed the simple-serde-arrays branch 3 times, most recently from 602b3ee to 82242a7 Compare May 9, 2025 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant