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

Cfg target has atomic v1.6.0 #4

Open
wants to merge 110 commits into
base: cfg_target_has_atomic_v1.1.0
Choose a base branch
from

Commits on Aug 8, 2021

  1. Clarify BufPut::put_int behavior (#486)

    * writes low bytes, discards high bytes
    * panics if `nbytes` is greater than 8
    stepancheg authored Aug 8, 2021
    Configuration menu
    Copy the full SHA
    fa9cbf1 View commit details
    Browse the repository at this point in the history
  2. BufMut::put_bytes(self, val, cnt) (#487)

    Equivalent to
    
    ```
    for _ in 0..cnt {
        self.put_u8(val);
    }
    ```
    
    but may work faster.
    
    Name and signature is chosen to be consistent with `ptr::write_bytes`.
    
    Include three specializations:
    * `Vec<u8>`
    * `&mut [u8]`
    * `BytesMut`
    
    `BytesMut` and `&mut [u8]` specializations use `ptr::write`, `Vec<u8>`
    specialization uses `Vec::resize`.
    stepancheg authored Aug 8, 2021
    Configuration menu
    Copy the full SHA
    2697fa7 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. ci: fetch cargo hack from github release (#507)

    Co-authored-by: Taiki Endo <[email protected]>
    Darksonn and taiki-e authored Aug 24, 2021
    Configuration menu
    Copy the full SHA
    ee24be7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e9fa0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    55e2968 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. Configuration menu
    Copy the full SHA
    ebc61e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2021

  1. Appease miri (#515)

    Rewrote the ledger in test_bytes_vec_alloc.rs to not piss off miri. The ledger is now a table within the allocator, which seems to satisfy miri. The old solution was to bundle an extra usize into the beginning of each allocation and then index past the start when deallocating data to get the size.
    Noah-Kennedy authored Nov 7, 2021
    Configuration menu
    Copy the full SHA
    ba5c5c9 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Configuration menu
    Copy the full SHA
    d946ef2 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. Add BytesMut::zeroed (#517)

    ldm0 authored Nov 24, 2021
    Configuration menu
    Copy the full SHA
    68afb40 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Configuration menu
    Copy the full SHA
    0e3b246 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    131dae1 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2022

  1. Configuration menu
    Copy the full SHA
    88f5e12 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. Optimize BytesMut::reserve: Reuse vec if possible (#529)

    * Optimize `BytesMut::reserve`: Reuse vec if possible
    
    If the `BytesMut` holds a unqiue reference to `KIND_ARC` while the
    capacity of the `Vec` is not big enough , reuse the existing `Vec`
    instead of allocating a new one.
    
    Signed-off-by: Jiahao XU <[email protected]>
    NobodyXu authored Mar 16, 2022
    Configuration menu
    Copy the full SHA
    d4f5023 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. docs: redraw layout diagram with box drawing characters. (#539)

    I find this diagram very helpful, but a little hard to distinguish
    between the boxes and the lines that connect them. This commit redraws
    the boxes with line drawing characters so that the boxes appear a
    little more solid, and stand out from the other lines.
    adeschamps authored Mar 25, 2022
    Configuration menu
    Copy the full SHA
    e4c7236 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. Configuration menu
    Copy the full SHA
    9e6edd1 View commit details
    Browse the repository at this point in the history
  2. Fix aliasing in Clone by using a raw pointer (#523)

    Previously, this code produced a &mut[u8] and a Box<[u8]> to the shared
    allocation upon cloning it. If the underlying allocation were actually
    shared, such as through a &[u8] from the Deref impl, creating either of
    these types incorrectly asserted uniqueness of the allocation.
    
    This fixes the example in #522, but Miri still does not pass on this
    test suite with -Zmiri-tag-raw-pointers because Miri does not currently
    understand int to pointer casts.
    saethlin authored Apr 6, 2022
    Configuration menu
    Copy the full SHA
    7244769 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2022

  1. Add TSAN support (#541)

    Darksonn authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    547a320 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8198f9e View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. Configuration menu
    Copy the full SHA
    0a2c43a View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2022

  1. Configuration menu
    Copy the full SHA
    89061c3 View commit details
    Browse the repository at this point in the history
  2. Revert accidental push directly to master

    This reverts commit 89061c3.
    
    Why am I even able to push to master?
    Darksonn committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    b4b2c18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    716a0b1 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2022

  1. Configuration menu
    Copy the full SHA
    0ce4fe3 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2022

  1. Add UninitSlice::as_uninit_slice_mut() (#548)

    This adds an unsafe method to convert a `&mut UninitSlice` into a
    `&mut [MaybeUninit<u8>]`. This method is unsafe because some of the
    bytes in the slice may be initialized, and the caller should not
    overwrite them with uninitialized bytes.
    
    This came about when auditing [tokio-util's udp frame], where they want
    to pass the unitialized portion of a `BytesMut` to [ReadBuf::uninit].
    They need to do this unsafe pointer casting in a few places, which
    complicates audits. This method lets us document the safety invariants
    the caller needs to maintain when doing this conversion.
    
    [tokio-util's udp frame]: https://github.com/tokio-rs/tokio/blob/master/tokio-util/src/udp/frame.rs#L87
    [ReadBuf::uninit]: https://docs.rs/tokio/latest/tokio/io/struct.ReadBuf.html#method.uninit
    erickt authored May 10, 2022
    Configuration menu
    Copy the full SHA
    b8d27c0 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2022

  1. Configuration menu
    Copy the full SHA
    3536017 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Configuration menu
    Copy the full SHA
    28a1eab View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2022

  1. Configuration menu
    Copy the full SHA
    f514bd3 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2022

  1. Configuration menu
    Copy the full SHA
    068ed41 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Fix: From<BytesMut> fo Vec<u8> implementation (#554)

    Signed-off-by: Jiahao XU <[email protected]>
    NobodyXu authored Jul 13, 2022
    Configuration menu
    Copy the full SHA
    10d1f6e View commit details
    Browse the repository at this point in the history
  2. Add conversion from Bytes to Vec<u8> (#547)

    Signed-off-by: Jiahao XU <[email protected]>
    Co-authored-by: Alice Ryhl <[email protected]>
    NobodyXu and Darksonn authored Jul 13, 2022
    Configuration menu
    Copy the full SHA
    cd188cb View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Fix amortized asymptotics of BytesMut (#555)

    Signed-off-by: Jiahao XU <[email protected]>
    Co-authored-by: Frank Steffahn <[email protected]>
    NobodyXu and steffahn authored Jul 19, 2022
    Configuration menu
    Copy the full SHA
    7553a67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38fd42a View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. Fix reserve over allocating underlying buffer (#560)

    Fixes calls to `reserve` when the underlying shared buffer was already
    big enough to fit the requested capacity. Previously a new even larger
    buffer was created anyways. This could eventually lead to an OOM
    condition.
    schultetwin1 authored Jul 30, 2022
    Configuration menu
    Copy the full SHA
    d6e1999 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b724914 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    d1b5d4c View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. Configuration menu
    Copy the full SHA
    a36f661 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. Configuration menu
    Copy the full SHA
    6e4b1f2 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. Configuration menu
    Copy the full SHA
    5c7b431 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a8c41f View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. Configuration menu
    Copy the full SHA
    9b22722 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Configuration menu
    Copy the full SHA
    050d65b View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2022

  1. Fix duplicate "the the" typos (#585)

    Co-authored-by: Nicolae Mihalache <[email protected]>
    xpromache and Nicolae Mihalache authored Dec 20, 2022
    Configuration menu
    Copy the full SHA
    c93a94b View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Configuration menu
    Copy the full SHA
    f15bba3 View commit details
    Browse the repository at this point in the history
  2. Support non-atomic targets

    taiki-e authored and marius-meissner committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    39e2586 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    996f472 View commit details
    Browse the repository at this point in the history
  4. fix

    taiki-e authored and marius-meissner committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    c6b431a View commit details
    Browse the repository at this point in the history
  5. setup codegen ci

    taiki-e authored and marius-meissner committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    d74afcb View commit details
    Browse the repository at this point in the history
  6. add comment

    taiki-e authored and marius-meissner committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    968b268 View commit details
    Browse the repository at this point in the history
  7. update list

    taiki-e authored and marius-meissner committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    7167040 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5c2e7c3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    05de2cd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4ba0531 View commit details
    Browse the repository at this point in the history
  11. Avoid large reallocations when freezing BytesMut (#592)

    When we freeze a BytesMut, we turn it into a Vec, and then convert that
    to a Bytes.  Currently, this happen using Vec::into_boxed_slice, which
    reallocates to a slice of the same length as the Vev if the length and
    the capacity are not equal.  This can pose a performance problem if the
    Vec is large or if this happens many times in a loop.
    
    Instead, let's compare the length and capacity, and if they're the same,
    continue to handle this using into_boxed_slice.  Otherwise, since we
    have a type of vtable which can handle a separate capacity, the shared
    vtable, let's turn our Vec into that kind of Bytes.  While this does not
    avoid allocation altogether, it performs a fixed size allocation and
    avoids any need to memcpy.
    bk2204 authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    05e9d5c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    21ed332 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. Mark BytesMut::extend_from_slice as inline (#595)

    This function can be hot in applications that do a lot of encoding. Ideally would do the same for `<BytesMut as BufMut>::put_slice` and `<BytesMut as BufMut::put_u8`.
    samanpa authored Feb 4, 2023
    Configuration menu
    Copy the full SHA
    74b04c7 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Add a safe way to create UninitSlice from slices (#598)

    Introduce UninitSlice::from_slice and UninitSlice::from_uninit_slice
    methods which safely create Uninit slice from provided slice of maybe
    uninitialised or initialised memory.
    
    In addition, add `From<&mut [T]>` implementations (for `T=u8` and
    `T=MaybeUninit<u8>`) which do conversion from slice to UninitSlice.
    
    Closes: #552
    mina86 authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    99a2754 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. Configuration menu
    Copy the full SHA
    b29112c View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2023

  1. Fix CI failure (#616)

    taiki-e authored Jun 4, 2023
    Configuration menu
    Copy the full SHA
    c7756c3 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. Rename UninitSlice constructors for consistency with ReadBuf (#599)

    tokio::io::ReadBuf uses names `new` and `uninit` for its constructors.
    For consistency with that, rename recently introduced UninitSlice
    constructors to match those names.
    mina86 authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    64c4fa2 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Configuration menu
    Copy the full SHA
    74e6e20 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd9c164 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Configuration menu
    Copy the full SHA
    a14ef46 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    a4e16a5 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Various cleanup (#635)

    Darksonn authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    fd9243f View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. docs: typo fix (#637)

    Co-authored-by: Daniel Bauman <[email protected]>
    DanielBauman88 and Daniel Bauman authored Oct 19, 2023
    Configuration menu
    Copy the full SHA
    bde8c50 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. docs: fix broken links (#639)

    Fixed a few broken links and converted a lot of them from the
    html-link to intra-doc links.
    kaffarell authored Nov 16, 2023
    Configuration menu
    Copy the full SHA
    72cbb92 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. Simplify UninitSlice::as_uninit_slice_mut() logic (#644)

    This reworks `UninitSlice::as_uninit_slice_mut()` using equivalent
    simpler logic.
    lucab authored Dec 28, 2023
    Configuration menu
    Copy the full SHA
    f73c6c8 View commit details
    Browse the repository at this point in the history
  2. Use self. instead of Self:: (#642)

    I was a little confused about these calls using `Self::` instead of
    `self.` here. Is there a reason to use the former instead of the latter?
    braddunbar authored Dec 28, 2023
    Configuration menu
    Copy the full SHA
    dbbdb63 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Configuration menu
    Copy the full SHA
    3bf6583 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2024

  1. Update loom to 0.7 (#651)

    taiki-e authored Jan 7, 2024
    Configuration menu
    Copy the full SHA
    fbc64bc View commit details
    Browse the repository at this point in the history
  2. Update CI config (#650)

    taiki-e authored Jan 7, 2024
    Configuration menu
    Copy the full SHA
    09214ba View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. BytesMut: Assert alignment of Shared (#652)

    Back in #362, an assertion was added to ensure that the alignment of
    bytes::Shared is even so we can use the least significant bit as a flag.
    bytes_mut::Shared uses the same technique but has no such assertion so
    I've added one here.
    braddunbar authored Jan 19, 2024
    Configuration menu
    Copy the full SHA
    abb4a2e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0864aea View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2024

  1. Configuration menu
    Copy the full SHA
    0ba3b4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9257a6e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e24587d View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. refactor: make parameter mut in From<Vec> (#667)

    Instead of re-declaring `vec`, we can just use a mut parameter.
    braddunbar authored Jan 31, 2024
    Configuration menu
    Copy the full SHA
    d2e7abd View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Restore commented tests (#665)

    These seem to have been commented by accident in #298, and are still
    passing.
    braddunbar authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    8bcac21 View commit details
    Browse the repository at this point in the history
  2. Use sub instead of offset (#668)

    We're always subtracting here, and we already have a usize, so `sub`
    seems like a more appropriate usage to me.
    braddunbar authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    47e8305 View commit details
    Browse the repository at this point in the history
  3. Calculate original capacity only if necessary (#666)

    We don't need the original capacity if the shared data is unique, so
    let's not calculate it until after that check.
    braddunbar authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    c6972d6 View commit details
    Browse the repository at this point in the history
  4. set_vec_pos does not need a second parameter (#672)

    The second argument to `set_vec_pos` always contains the value of
    `self.data`. Let's just use `self.data` and remove the second parameter
    altogether.
    braddunbar authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    f586ffc View commit details
    Browse the repository at this point in the history
  5. get_vec_pos: use &self instead of &mut self (#670)

    I can't see any reason that get_vec_pos needs a &mut self.
    braddunbar authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    1bcd212 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Refactor split_at/split_to (#663)

    * set len a little more concisely
    * inline set_end
    * remove kind assertions
    * remove a duplicate assertion
    * remove redundant assertion and min
    * rename set_start to advance_unchecked
    braddunbar authored Feb 23, 2024
    Configuration menu
    Copy the full SHA
    4628927 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Use Iterator from the prelude (#673)

    CI is [failing][failure] due to unused_imports because Iterator is
    already in the prelude. Removing it fixes things up.
    
    [failure]: https://github.com/tokio-rs/bytes/actions/runs/8034858583/job/21946873895
    braddunbar authored Mar 2, 2024
    Configuration menu
    Copy the full SHA
    99584cc View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2024

  1. copy_to_bytes: Add panic section to docs (#676)

    Fixes #454.
    braddunbar authored Mar 3, 2024
    Configuration menu
    Copy the full SHA
    c5fae00 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Configuration menu
    Copy the full SHA
    7968f6f View commit details
    Browse the repository at this point in the history
  2. Remove commented tests for Bytes::unsplit (#677)

    Bytes doesn't have an unsplit method anymore. We can always retrieve
    these from git history if necessary.
    braddunbar authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    ca00411 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    536db06 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    ce8d8a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Configuration menu
    Copy the full SHA
    0d4cc7f View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Don't set len in BytesMut::reserve (#682)

    A fundamental invariant of `reserve` is that it can extend capacity
    while the stored data remains the same, even if it's moved to a new
    allocation. As a result, `len` can never change during a call to
    `reserve`.
    braddunbar authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    e4af486 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Bytes::split_to - check fast path first (#689)

    If `at == self.len()` then we already know `at <= self.len()`. If
    `at == 0`, it can't be greater than `self.len()`.
    braddunbar authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    4eb62b9 View commit details
    Browse the repository at this point in the history
  2. perf: improve Bytes::copy_to_bytes (#688)

    Signed-off-by: tison <[email protected]>
    tisonkun authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    b5fbfc3 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. test(benches): encloses bytes into test::black_box for clone benche…

    …s (#691)
    
    Closes #690
    Without it, it seems to me that compiler is able to inline the vtable,
    resulting in similar results for `clone_shared` and `clone_arg_vec`.
    wyfo authored Apr 11, 2024
    Configuration menu
    Copy the full SHA
    327615e View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Truncate tweaks (#694)

    braddunbar authored Apr 17, 2024
    Configuration menu
    Copy the full SHA
    4e2c9c0 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Resize refactor (#696)

    * use checked_sub
    
    * return when additional == 0
    
    * move safe operation out of unsafe block
    
    * use spare_capacity_mut instead of chunk_mut
    
    We don't need to check capacity because it's already been reserved
    above.
    
    * Add safety comments
    
    * refactor to use guard clauses
    
    This would be better written with let-else, but we won't get that until
    `MSRV >= 1.65.x`.
    
    * use if-let instead of unwrap
    
    * reduce scope of unsafe blocks
    
    Co-authored-by: Alice Ryhl <[email protected]>
    
    ---------
    
    Co-authored-by: Alice Ryhl <[email protected]>
    braddunbar and Darksonn authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    9d3ec1c View commit details
    Browse the repository at this point in the history
  2. Bytes::split_off - check fast path first (#693)

    Follow up to tokio-rs/bytes#689
    
    * If `at == self.len()`, we already know `at <= self.len()`.
    * If `at == 0`, we already know `at <= self.len()`.
    braddunbar authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    ce09d7d View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    baa5053 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a8806c2 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    cb7f844 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Configuration menu
    Copy the full SHA
    0c17e99 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86694b0 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. Offset from (#705)

    braddunbar authored May 11, 2024
    Configuration menu
    Copy the full SHA
    4950c50 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. Configuration menu
    Copy the full SHA
    caf520a View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Change Bytes::make_mut to impl From<Bytes> for BytesMut (closes #709)…

    … (#710)
    
    <Arc<T>>::make_mut returns a &mut T, such an API is doable for Bytes too
    and thus we should reserve Bytes::make_mut for that.
    
    Furthermore, it would be helpful to use From<Bytes> as a trait bound
    in some cases with other traits such as Hyper's body trait, where Hyper
    gives you Bytes values.
    
    Finally, making it impl From<Bytes> for BytesMut means the API is more
    easily discoverable as it appears on both Bytes and BytesMut.
    nox authored May 28, 2024
    Configuration menu
    Copy the full SHA
    fa1daac View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. Configuration menu
    Copy the full SHA
    4b3bd43 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    cbaf2bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94507b2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3074751 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Configuration menu
    Copy the full SHA
    1548e56 View commit details
    Browse the repository at this point in the history