Skip to content

Conversation

@paolobarbolini
Copy link
Contributor

@paolobarbolini paolobarbolini commented Jul 26, 2025

This implements fallible allocations by adding the BytesMut::try_reserve() API and implementing it on top of Vec::try_reserve. This uses a different implementation strategy to #613 (#521 originally), which I believe to be stronger and more closely follows the std approach of having two different code paths end-to-end: panicking and fallible.

Fixes #484
Closes #613

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.

Fallible allocations?

1 participant