Skip to content
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

Impl versionize for statically sized arrays #1450

Merged
merged 3 commits into from
Aug 5, 2024
Merged

Conversation

nsarlin-zama
Copy link
Contributor

@nsarlin-zama nsarlin-zama commented Aug 2, 2024

Add versionize support for statically sized arrays ([T; N]) and std::num::Wrapping<T>.

Static arrays are converted to slice/vec before versioning since serde does not support const generics in arrays: serde-rs/serde#1937

@cla-bot cla-bot bot added the cla-signed label Aug 2, 2024
Base automatically changed from ns/versionize_hashmap to main August 2, 2024 08:53
@nsarlin-zama nsarlin-zama force-pushed the ns/versionize_arrays branch from 2342eff to b7b3884 Compare August 2, 2024 08:57
Copy link
Collaborator

@kc1212 kc1212 left a comment

Choose a reason for hiding this comment

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

Thanks! all is working on my side.

Just wondering: should we add some tests or examples for these new featuers?

@nsarlin-zama
Copy link
Contributor Author

I added a test with a struct containing all these types

@nsarlin-zama nsarlin-zama requested a review from tmontaigu August 5, 2024 09:55
@nsarlin-zama nsarlin-zama force-pushed the ns/versionize_arrays branch from 03d31d6 to a52fc90 Compare August 5, 2024 12:22
@nsarlin-zama nsarlin-zama merged commit 80fe45f into main Aug 5, 2024
79 checks passed
@nsarlin-zama nsarlin-zama deleted the ns/versionize_arrays branch August 5, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants