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 v1 #783

Merged
merged 2 commits into from
Nov 30, 2023
Merged

fix(deps): update rust crate bytes to v1 #783

merged 2 commits into from
Nov 30, 2023

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 major 0.4 -> 1.5

Release Notes

tokio-rs/bytes (bytes)

v1.5.0

Compare Source

Added
Changed
  • Mark BytesMut::extend_from_slice as inline (#​595)

v1.4.0

Compare Source

Added
  • Make IntoIter constructor public (#​581)
Fixed
  • Avoid large reallocations when freezing BytesMut (#​592)
Documented
  • Document which functions require std (#​591)
  • Fix duplicate "the the" typos (#​585)

v1.3.0

Compare Source

Added
  • Rename and expose BytesMut::spare_capacity_mut (#​572)
  • Implement native-endian get and put functions for Buf and BufMut (#​576)
Fixed
  • Don't have important data in unused capacity when calling reserve (#​563)
Documented
  • Bytes::new etc should return Self not Bytes (#​568)

v1.2.1

Compare Source

Fixed
  • Fix unbounded memory growth when using reserve (#​560)

v1.2.0

Compare Source

Added
  • Add BytesMut::zeroed (#​517)
  • Implement Extend<Bytes> for BytesMut (#​527)
  • Add conversion from BytesMut to Vec<u8> (#​543, #​554)
  • Add conversion from Bytes to Vec<u8> (#​547)
  • Add UninitSlice::as_uninit_slice_mut() (#​548)
  • Add const to Bytes::{len,is_empty} (#​514)
Changed
Fixed
Documented
  • Redraw layout diagram with box drawing characters (#​539)
  • Clarify BytesMut::unsplit docs (#​535)

v1.1.0

Compare Source

Added
  • BufMut::put_bytes(self, val, cnt) (#​487)
  • Implement From<Box<[u8]>> for Bytes (#​504)
Changed
  • Override put_slice for &mut [u8] (#​483)
  • Panic on integer overflow in Chain::remaining (#​482)
  • Add inline tags to UninitSlice methods (#​443)
  • Override copy_to_bytes for Chain and Take (#​481)
  • Keep capacity when unsplit on empty other buf (#​502)
Documented
  • Clarify BufMut allocation guarantees (#​501)
  • Clarify BufMut::put_int behavior (#​486)
  • Clarify actions of clear and truncate. (#​508)

v1.0.1

Compare Source

Changed
  • mark Vec::put_slice with #[inline] (#​459)
Fixed
  • Fix deprecation warning (#​457)
  • use Box::into_raw instead of mem::forget-in-disguise (#​458)

v1.0.0

Compare Source

Changed
  • Rename Buf/BufMut methods bytes() and bytes_mut() to chunk() and chunk_mut() (#​450)
Removed
  • remove unused Buf implementation. (#​449)

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
@renovate renovate bot force-pushed the renovate/bytes-1.x branch 2 times, most recently from 9376253 to 5e3b1b5 Compare November 29, 2023 13:36
Copy link
Contributor Author

renovate bot commented Nov 30, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@FabianLars FabianLars merged commit c98545b into v1 Nov 30, 2023
6 of 7 checks passed
@FabianLars FabianLars deleted the renovate/bytes-1.x branch November 30, 2023 11:04
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