Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate bytes to 0.6 #782

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 29, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Type Update Change
bytes dependencies minor 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 an unsafe trait (#​432).
  • BufMut::bytes_mut() returns &mut UninitSlice, a type owned by bytes to
    avoid undefined behavior (#​433).
  • Buf::copy_to_bytes(len) replaces Buf::into_bytes() (#​439).
  • Buf/BufMut utility methods are moved onto the trait and *Ext traits are
    removed (#​431).
Removed
  • BufMut::bytes_vectored_mut() (#​430).
  • new methods on combinator types (#​434).

v0.5.6

Compare Source

  • Improve BytesMut to reuse buffer when fully advanced.
  • Mark BytesMut::{as_mut, set_len} with #[inline].
  • Relax synchronization when cloning in shared vtable of Bytes.
  • Move loom to dev-dependencies.

v0.5.5

Compare Source

Added
  • Allow using the serde feature in no_std environments (#​385).
Fix
  • Fix BufMut::advance_mut to panic if advanced passed the capacity (#​354)..
  • Fix BytesMut::freeze ignoring amount previously advanced (#​352).

v0.5.4

Compare Source

Added
  • Make Bytes::new a const fn.
  • Add From<BytesMut> for Bytes.
Fix
  • Fix reversed arguments in PartialOrd for Bytes.
  • Fix Bytes::truncate losing original capacity when repr is an unshared Vec.
  • Fix Bytes::from(Vec) when allocator gave Vec a pointer with LSB set.
  • Fix panic in Bytes::slice_ref if argument is an empty slice.

v0.5.3

Compare Source

Added
  • must_use attributes to split, split_off, and split_to methods (#​337).
Fix
  • Potential freeing of a null pointer in Bytes when constructed with an empty Vec<u8> (#​341, #​342).
  • Calling Bytes::truncate with a size large than the length will no longer clear the Bytes (#​333).

v0.5.2

Compare Source

Added
  • Limit methods into_inner, get_ref, get_mut, limit, and set_limit (#​325).

v0.5.1

Compare Source

Fix
  • Growth documentation for BytesMut (#​321)

v0.5.0

Compare Source

Fix
  • Potential overflow in copy_to_slice
Changed
  • Increased minimum supported Rust version to 1.39.
  • Bytes is now a "trait object", allowing for custom allocation strategies (#​298)
  • BytesMut implicitly grows internal storage. remaining_mut() returns
    usize::MAX (#​316).
  • BufMut::bytes_mut returns &mut [MaybeUninit<u8>] to reflect the unknown
    initialization state (#​305).
  • Buf / BufMut implementations for &[u8] and &mut [u8]
    respectively (#​261).
  • Move Buf / BufMut "extra" functions to an extension trait (#​306).
  • BufMutExt::limit (#​309).
  • Bytes::slice takes a RangeBounds argument (#​265).
  • Bytes::from_static is now a const fn (#​311).
  • A multitude of smaller performance optimizations.
Added
  • no_std support (#​281).
  • get_*, put_*, get_*_le, and put_*le accessors for handling byte order.
  • BorrowMut implementation for BytesMut (#​185).
Removed
  • IntoBuf (#​288).
  • Buf implementation for &str (#​301).
  • byteorder dependency (#​280).
  • iovec dependency, use std::IoSlice instead (#​263).
  • optional either dependency (#​315).
  • optional i128 feature -- now available on stable. (#​276).

v0.4.12

Compare Source

Added
  • Implement FromIterator<&'a u8> for BytesMut/Bytes (#​244).
  • Implement Buf for VecDeque (#​249).

v0.4.11

Compare Source

  • Use raw pointers for potentially racy loads (#​233).
  • Implement BufRead for buf::Reader (#​232).
  • Documentation tweaks (#​234).

v0.4.10

Compare Source

  • impl Buf and BufMut for Either (#​225).
  • Add Bytes::slice_ref (#​208).

v0.4.9

Compare Source

  • Add 128 bit number support behind a feature flag (#​209).
  • Implement IntoBuf for &mut [u8]

v0.4.8

Compare Source

  • Fix panic in BytesMut FromIterator implementation.
  • Bytes: Recycle space when reserving space in vec mode (#​197).
  • Bytes: Add resize fn (#​203).

v0.4.7

Compare Source

  • Make Buf and BufMut usable as trait objects (#​186).
  • impl BorrowMut for BytesMut (#​185).
  • Improve accessor performance (#​195).

v0.4.6

Compare Source

  • Implement FromIterator for Bytes/BytesMut (#​148).
  • Add advance fn to Bytes/BytesMut (#​166).
  • Add unsplit fn to BytesMut (#​162, #​173).
  • Improvements to Bytes split fns (#​92).

v0.4.5

Compare Source

  • Fix range bug in Take::bytes
  • Misc performance improvements
  • Add extra PartialEq implementations.
  • Add Bytes::with_capacity
  • Implement AsMut[u8] for BytesMut

v0.4.4

Compare Source

  • Add serde support behind feature flag
  • Add extend_from_slice on Bytes and BytesMut
  • Add truncate and clear on Bytes
  • Misc additional std trait implementations
  • Misc performance improvements

v0.4.3

Compare Source

  • Fix Vec::advance_mut bug
  • Bump minimum Rust version to 1.15
  • Misc performance tweaks

v0.4.2

Compare Source

  • Misc performance tweaks
  • Improved Debug implementation for Bytes
  • Avoid some incorrect assert panics

v0.4.1

Compare Source

Added
  • Implement FromIterator<&'a u8> for BytesMut/Bytes (#​244).
  • Implement Buf for VecDeque (#​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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner November 29, 2023 12:07
@FabianLars FabianLars closed this Nov 30, 2023
@FabianLars FabianLars deleted the renovate/bytes-0.x branch November 30, 2023 09:36
Copy link
Contributor Author

renovate bot commented Nov 30, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.6). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

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.

1 participant