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

Feat: Add bytemuck::Pod to Hasher::Hash and remove unsafe code. #53

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

0xKitsune
Copy link
Contributor

@0xKitsune 0xKitsune commented Aug 7, 2023

Addresses #52. This PR adds the bytemuck::Pod trait to the Hasher::Hash type, allowing unsafe code to be removed when converting to bytes. MmapMutWrapper::new_with_initial_values as well as the Deref and DerefMut implementations for MmapMutWrapper now use cast_slice or cast_slice_mut to convert to bytes.

This PR required a change to the ruint crate. For now, I have updated theruint dependency to point to the repository's most recent commit until a new version of ruint is released.

@0xKitsune 0xKitsune merged commit 0aaac6c into main Mar 14, 2024
3 checks passed
@0xKitsune 0xKitsune deleted the 0xkitsune/pod branch March 14, 2024 14: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.

2 participants