Skip to content

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

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
tom25519:alloc-feature-password-hash
Jun 12, 2023
Merged

Enable alloc feature of password-hash if enabled for argon2/balloon-hash#422
tarcieri merged 1 commit intoRustCrypto:masterfrom
tom25519:alloc-feature-password-hash

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
@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.

2 participants