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

bytes feature of aead is not re-exported by AEADs #600

Open
davepollack opened this issue Apr 11, 2024 · 1 comment
Open

bytes feature of aead is not re-exported by AEADs #600

davepollack opened this issue Apr 11, 2024 · 1 comment

Comments

@davepollack
Copy link

Hi,

I have a BytesMut given to me by quinn-proto, that I would like to use as a Buffer with chacha20poly1305. The impl of Buffer for BytesMut is gated behind the bytes feature.

However I cannot specify features = ["bytes"] with chacha20poly1305, as its Cargo.toml (and I think other AEADs) does not re-export the feature. This seems to be inconsistent with other similar features like heapless and arrayvec that are re-exported.

Currently I've added aead with features = ["bytes"] to my Cargo.toml to union in the feature, which isn't too bad, but I'm wondering if this is an oversight.

Cheers

@tarcieri
Copy link
Member

Yeah, we can potentially add passthroughs for this like we have for heapless

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

No branches or pull requests

2 participants