fix(deps): update rust crate bytes to 0.6 #782
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.4
->0.6
Release Notes
tokio-rs/bytes (bytes)
v0.6.0
Compare Source
API polish in preparation for a 1.0 release.
Changed
BufMut
is now anunsafe
trait (#432).BufMut::bytes_mut()
returns&mut UninitSlice
, a type owned bybytes
toavoid undefined behavior (#433).
Buf::copy_to_bytes(len)
replacesBuf::into_bytes()
(#439).Buf
/BufMut
utility methods are moved onto the trait and*Ext
traits areremoved (#431).
Removed
BufMut::bytes_vectored_mut()
(#430).new
methods on combinator types (#434).v0.5.6
Compare Source
BytesMut
to reuse buffer when fullyadvance
d.BytesMut::{as_mut, set_len}
with#[inline]
.Bytes
.loom
todev-dependencies
.v0.5.5
Compare Source
Added
serde
feature inno_std
environments (#385).Fix
BufMut::advance_mut
to panic if advanced passed the capacity (#354)..BytesMut::freeze
ignoring amount previouslyadvance
d (#352).v0.5.4
Compare Source
Added
Bytes::new
aconst fn
.From<BytesMut>
forBytes
.Fix
PartialOrd
forBytes
.Bytes::truncate
losing original capacity when repr is an unsharedVec
.Bytes::from(Vec)
when allocator gaveVec
a pointer with LSB set.Bytes::slice_ref
if argument is an empty slice.v0.5.3
Compare Source
Added
must_use
attributes tosplit
,split_off
, andsplit_to
methods (#337).Fix
Bytes
when constructed with an emptyVec<u8>
(#341, #342).Bytes::truncate
with a size large than the length will no longer clear theBytes
(#333).v0.5.2
Compare Source
Added
Limit
methodsinto_inner
,get_ref
,get_mut
,limit
, andset_limit
(#325).v0.5.1
Compare Source
Fix
BytesMut
(#321)v0.5.0
Compare Source
Fix
copy_to_slice
Changed
Bytes
is now a "trait object", allowing for custom allocation strategies (#298)BytesMut
implicitly grows internal storage.remaining_mut()
returnsusize::MAX
(#316).BufMut::bytes_mut
returns&mut [MaybeUninit<u8>]
to reflect the unknowninitialization state (#305).
Buf
/BufMut
implementations for&[u8]
and&mut [u8]
respectively (#261).
Buf
/BufMut
"extra" functions to an extension trait (#306).BufMutExt::limit
(#309).Bytes::slice
takes aRangeBounds
argument (#265).Bytes::from_static
is now aconst fn
(#311).Added
no_std
support (#281).get_*
,put_*
,get_*_le
, andput_*le
accessors for handling byte order.BorrowMut
implementation forBytesMut
(#185).Removed
IntoBuf
(#288).Buf
implementation for&str
(#301).byteorder
dependency (#280).iovec
dependency, usestd::IoSlice
instead (#263).either
dependency (#315).i128
feature -- now available on stable. (#276).v0.4.12
Compare Source
Added
FromIterator<&'a u8>
forBytesMut
/Bytes
(#244).Buf
forVecDeque
(#249).v0.4.11
Compare Source
BufRead
forbuf::Reader
(#232).v0.4.10
Compare Source
Buf
andBufMut
forEither
(#225).Bytes::slice_ref
(#208).v0.4.9
Compare Source
IntoBuf
for&mut [u8]
v0.4.8
Compare Source
BytesMut
FromIterator
implementation.v0.4.7
Compare Source
Buf
andBufMut
usable as trait objects (#186).v0.4.6
Compare Source
advance
fn to Bytes/BytesMut (#166).unsplit
fn toBytesMut
(#162, #173).v0.4.5
Compare Source
Take::bytes
PartialEq
implementations.Bytes::with_capacity
AsMut[u8]
forBytesMut
v0.4.4
Compare Source
extend_from_slice
onBytes
andBytesMut
truncate
andclear
onBytes
v0.4.3
Compare Source
v0.4.2
Compare Source
Debug
implementation forBytes
v0.4.1
Compare Source
Added
FromIterator<&'a u8>
forBytesMut
/Bytes
(#244).Buf
forVecDeque
(#249).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.