Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: serde-rs/bytes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.11.12
Choose a base ref
...
head repository: serde-rs/bytes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.11.13
Choose a head ref
  • 16 commits
  • 9 files changed
  • 2 contributors

Commits on Sep 5, 2023

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

Commits on Sep 24, 2023

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

Commits on Sep 28, 2023

  1. Add byte array type

    sgued committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    7ffee6f View commit details
    Browse the repository at this point in the history
  2. Add tests for ByteArray

    sgued committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    95d9f83 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2023

  1. Ignore into_iter_without_iter pedantic clippy lint

        warning: `IntoIterator` implemented for a reference type without an `iter` method
           --> src/bytes.rs:137:1
            |
        137 | / impl<'a> IntoIterator for &'a Bytes {
        138 | |     type Item = &'a u8;
        139 | |     type IntoIter = <&'a [u8] as IntoIterator>::IntoIter;
        140 | |
        ...   |
        143 | |     }
        144 | | }
            | |_^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
            = note: `-W clippy::into-iter-without-iter` implied by `-W clippy::pedantic`
            = help: to override `-W clippy::pedantic` add `#[allow(clippy::into_iter_without_iter)]`
        help: consider implementing `iter`
            |
        137 +
        138 + impl Bytes {
        139 +     fn iter(&self) -> <&'a [u8] as IntoIterator>::IntoIter {
        140 +         <&Self as IntoIterator>::into_iter(self)
        141 +     }
        142 + }
            |
    
        warning: `IntoIterator` implemented for a reference type without an `iter_mut` method
           --> src/bytes.rs:146:1
            |
        146 | / impl<'a> IntoIterator for &'a mut Bytes {
        147 | |     type Item = &'a mut u8;
        148 | |     type IntoIter = <&'a mut [u8] as IntoIterator>::IntoIter;
        149 | |
        ...   |
        152 | |     }
        153 | | }
            | |_^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
        help: consider implementing `iter_mut`
            |
        146 +
        147 + impl Bytes {
        148 +     fn iter_mut(&mut self) -> <&'a mut [u8] as IntoIterator>::IntoIter {
        149 +         <&mut Self as IntoIterator>::into_iter(self)
        150 +     }
        151 + }
            |
    
        warning: `IntoIterator` implemented for a reference type without an `iter` method
           --> src/bytebuf.rs:167:1
            |
        167 | / impl<'a> IntoIterator for &'a ByteBuf {
        168 | |     type Item = &'a u8;
        169 | |     type IntoIter = <&'a [u8] as IntoIterator>::IntoIter;
        170 | |
        ...   |
        173 | |     }
        174 | | }
            | |_^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
        help: consider implementing `iter`
            |
        167 +
        168 + impl ByteBuf {
        169 +     fn iter(&self) -> <&'a [u8] as IntoIterator>::IntoIter {
        170 +         <&Self as IntoIterator>::into_iter(self)
        171 +     }
        172 + }
            |
    
        warning: `IntoIterator` implemented for a reference type without an `iter_mut` method
           --> src/bytebuf.rs:176:1
            |
        176 | / impl<'a> IntoIterator for &'a mut ByteBuf {
        177 | |     type Item = &'a mut u8;
        178 | |     type IntoIter = <&'a mut [u8] as IntoIterator>::IntoIter;
        179 | |
        ...   |
        182 | |     }
        183 | | }
            | |_^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_without_iter
        help: consider implementing `iter_mut`
            |
        176 +
        177 + impl ByteBuf {
        178 +     fn iter_mut(&mut self) -> <&'a mut [u8] as IntoIterator>::IntoIter {
        179 +         <&mut Self as IntoIterator>::into_iter(self)
        180 +     }
        181 + }
            |
    dtolnay committed Oct 7, 2023
    Configuration menu
    Copy the full SHA
    deb9c32 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

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

Commits on Dec 27, 2023

  1. Merge pull request #28 from sgued/byte-array

    Add support for `[u8; N]`
    dtolnay authored Dec 27, 2023
    Configuration menu
    Copy the full SHA
    5da9904 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    15970a2 View commit details
    Browse the repository at this point in the history
  3. Touch up PR 28

    dtolnay committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    7cd6ddb View commit details
    Browse the repository at this point in the history
  4. Merge pull request #45 from serde-rs/copybytearray

    Implement Copy for ByteArray<N>
    dtolnay authored Dec 27, 2023
    Configuration menu
    Copy the full SHA
    7c664c0 View commit details
    Browse the repository at this point in the history
  5. Ignore ptr_as_ptr pedantic clippy lint

        warning: `as` casting between raw pointers without changing its mutability
          --> src/bytearray.rs:55:20
           |
        55 |         unsafe { &*(bytes as *const [u8; N] as *const ByteArray<N>) }
           |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try `pointer::cast`, a safer alternative: `(bytes as *const [u8; N]).cast::<ByteArray<N>>()`
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
           = note: `-W clippy::ptr-as-ptr` implied by `-W clippy::pedantic`
           = help: to override `-W clippy::pedantic` add `#[allow(clippy::ptr_as_ptr)]`
    dtolnay committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    677457b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e1f53b2 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #46 from serde-rs/refbytearray

    Support deserializing `&'de [u8; N]`
    dtolnay authored Dec 27, 2023
    Configuration menu
    Copy the full SHA
    0d92965 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1772017 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #47 from serde-rs/nostd-deserialize

    Unconditional serde_bytes::deserialize
    dtolnay authored Dec 27, 2023
    Configuration menu
    Copy the full SHA
    bd341f2 View commit details
    Browse the repository at this point in the history
  10. Release 0.11.13

    dtolnay committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    76caff6 View commit details
    Browse the repository at this point in the history
Loading