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
As discussed in #28 , in an ideal world, peek_output_buffer() would be called output_buffer(), and output_buffer() would be called output_buffer_mut(). And the input_buffer() API would work similarly. But that's a breaking API change, so ideally it would be done gradually.
First, publish a minor release that adds input_buffer_mut() and output_buffer_mut() methods and throws a deprecation warning when calling input_buffer() or output_buffer() (which are now aliases to these methods), with a warning that their semantics are going to change to read-only in the future.
Next, a few months to a year later, publish a major release which changes input_buffer() and output_buffer() to read-only access, removes the deprecation warning, and deprecates the peek_output_buffer() method.
Finally, a few months to a year later, publish another major release which removes the peek_output_buffer() method.
The text was updated successfully, but these errors were encountered:
The first step (add _mut accessors and deprecate current non-mut accessor names with mutable access) has been taken in v8.1.0 on February 2, 2025.
In the next major release, I'll take the second step of flipping the non-mut accessors to read-only access (which will complete the migration for the producer side) and deprecating peek_output_buffer().
Uh oh!
There was an error while loading. Please reload this page.
As discussed in #28 , in an ideal world,
peek_output_buffer()
would be calledoutput_buffer()
, andoutput_buffer()
would be calledoutput_buffer_mut()
. And theinput_buffer()
API would work similarly. But that's a breaking API change, so ideally it would be done gradually.input_buffer_mut()
andoutput_buffer_mut()
methods and throws a deprecation warning when callinginput_buffer()
oroutput_buffer()
(which are now aliases to these methods), with a warning that their semantics are going to change to read-only in the future.input_buffer()
andoutput_buffer()
to read-only access, removes the deprecation warning, and deprecates thepeek_output_buffer()
method.peek_output_buffer()
method.The text was updated successfully, but these errors were encountered: