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 HashSet/HashMap and Box<[T]>/ABox<[T]> #1441

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

nsarlin-zama
Copy link
Contributor

@nsarlin-zama nsarlin-zama commented Jul 31, 2024

closes: please link all relevant issues

PR content/description

The implem converts to Vec<T::Versioned> for HashSet and Vec<(K::Versioned, V::Versioned)> for HashMap to remove the bound on Eq/Hash for the versioned type. That shouldn't matter since the versioned type is not supposed to be modified before serialization.

This PR also implements Versionize for Box<[T]> and ABox<[T]> (boxed slices)

@cla-bot cla-bot bot added the cla-signed label Jul 31, 2024
@nsarlin-zama nsarlin-zama force-pushed the ns/versionize_hashmap branch 2 times, most recently from 6dcd897 to 90c1197 Compare August 1, 2024 07:48
@nsarlin-zama nsarlin-zama changed the title feat(versionable): impl Versionize for HashSet/HashMap impl Versionize for HashSet/HashMap and Box<[T]>/ABox<[T]> Aug 1, 2024
Copy link
Contributor

@mayeul-zama mayeul-zama left a comment

Choose a reason for hiding this comment

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

Thanks!

@kc1212
Copy link
Collaborator

kc1212 commented Aug 2, 2024

Thanks @nsarlin-zama ! I checked the hashmap and Abox implementation, they all work on the kms side

@nsarlin-zama nsarlin-zama merged commit 781f78c into main Aug 2, 2024
80 checks passed
@nsarlin-zama nsarlin-zama deleted the ns/versionize_hashmap branch August 2, 2024 08:53
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