bytes icon indicating copy to clipboard operation
bytes copied to clipboard

Add BytesMut::try_reserve()

Open Guiguiprim opened this issue 2 years ago • 1 comments

Add support for fallible allocation by adding BytesMut::try_reserve().

This does change the MSRV to 1.57, so I don't know how we should handle it. Adding it under a feature flag, so that people can choose not to use it ?

Fixes https://github.com/tokio-rs/bytes/issues/484

Guiguiprim avatar Dec 13 '21 15:12 Guiguiprim

@Guiguiprim I wouldn't say this fixes #484, as it would be nice to also get fallible allocations on the rest of the APIs

paolobarbolini avatar Dec 20 '21 08:12 paolobarbolini

Closing as @poliorcetics refreshed this in a new PR.

Guiguiprim avatar May 22 '23 07:05 Guiguiprim