bytes
bytes copied to clipboard
Add BytesMut::try_reserve()
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 I wouldn't say this fixes #484, as it would be nice to also get fallible allocations on the rest of the APIs
Closing as @poliorcetics refreshed this in a new PR.