You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
This allows you to use a `BytesMut` as a `Buffer` with
`chacha20poly1305` (or other AEADs) by only including `chacha20poly1305`
in your Cargo.toml and not also having to include `aead` in your
Cargo.toml. This is similar to how `heapless` and `arrayvec` currently
have feature passthroughs.
Fixes#600
Hi,
I have a
BytesMut
given to me byquinn-proto
, that I would like to use as aBuffer
withchacha20poly1305
. The impl ofBuffer
forBytesMut
is gated behind thebytes
feature.However I cannot specify
features = ["bytes"]
withchacha20poly1305
, as its Cargo.toml (and I think other AEADs) does not re-export the feature. This seems to be inconsistent with other similar features likeheapless
andarrayvec
that are re-exported.Currently I've added
aead
withfeatures = ["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
The text was updated successfully, but these errors were encountered: