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

Make twox-hash an optional dependency #53

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Oct 26, 2023

Add a new feature "hash" which pulls in twox-hash and hashes during
decoding. Add "hash" to default features.

Fixes #52.

Add a new feature "hash" which pulls in twox-hash and hashes during
decoding. Add "hash" to default features.

Fixes KillingSpark#52.
@tamird tamird changed the title Move twox-hash to dev-dependencies Make twox-hash an optional dependency Oct 27, 2023
@KillingSpark
Copy link
Owner

Looks good! Any reason to change the Hasher initialization from the explicit seed to Default::default? I think it's better to have the explicit thing to make sure we stay spec compliant even if the default seed changes

@tamird
Copy link
Contributor Author

tamird commented Oct 28, 2023

Looks good! Any reason to change the Hasher initialization from the explicit seed to Default::default? I think it's better to have the explicit thing to make sure we stay spec compliant even if the default seed changes

The only reason was to reduce the number of references to the twox_hash type. I'm not at a computer for a bit but feel free to amend!

@KillingSpark KillingSpark merged commit 08b3a90 into KillingSpark:master Oct 29, 2023
6 checks passed
@KillingSpark
Copy link
Owner

Thanks! Did the amend and merged :)

@tamird tamird deleted the xxhash-dev branch October 29, 2023 12:18
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.

Move twox-hash dependency to dev-dependencies
2 participants