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

Enable alloc feature of password-hash if enabled for argon2/balloon-hash #422

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Enable alloc feature of password-hash if enabled for argon2/balloon-hash #422

merged 1 commit into from
Jun 12, 2023

Conversation

tom25519
Copy link
Contributor

Hi there!

This PR enables the password-hash/alloc feature if the argon2/alloc or balloon-hash/alloc features are enabled.

Prior to this PR, if a user adds argon2 as a dependency with the alloc feature enabled, but not the std feature (which is the case with the default feature set), then the alloc feature of password-hash is not enabled. This means that feature-gated types such as PasswordHashString are not available in the password-hash re-export, so users wishing to use these types will have to add password-hash as a separate dependency.

Thanks! :)

This commit enables the `password-hash/alloc` feature if the
`argon2/alloc` or `balloon-hash/alloc` features are enabled.

Prior to this commit, if a user adds argon2 as a dependency with the
`alloc` feature enabled, but not the `std` feature (which is the case
with the default feature set), then the `alloc` feature of
`password-hash` is not enabled. This means that feature-gated types such
as `PasswordHashString` are not available in the `password-hash`
re-export, so users wishing to use these types will have to add
`password-hash` as a separate dependency.
@tarcieri tarcieri merged commit 64d7004 into RustCrypto:master Jun 12, 2023
20 checks passed
@tarcieri
Copy link
Member

Looks good, thanks!

@tarcieri tarcieri mentioned this pull request Jul 13, 2023
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.

None yet

2 participants