Skip to content

Releases: serde-rs/bytes

0.11.5

11 Jun 03:21
0.11.5
7f2e508
Compare
Choose a tag to compare
  • Allow Cow<[u8]> and Cow<Bytes> to deserialize from owned bytes (#23)

0.11.4

02 May 04:55
0.11.4
2a07ef7
Compare
Choose a tag to compare
  • Support bytes inside of Option, as in:

    #[serde(with = "serde_bytes")]
    opt_bytes: Option<&'a [u8]>,

0.11.3

04 Dec 20:31
0.11.3
e50ee62
Compare
Choose a tag to compare
  • Documentation improvement (#17, thanks @djc)

0.11.2

07 Aug 16:32
0.11.2
4856e26
Compare
Choose a tag to compare

0.11.1

07 Aug 16:31
0.11.1
4958df3
Compare
Choose a tag to compare
  • Support serializing dynamically sized bytes fields.

      pub fn serialize<T, S>(bytes: &T, serializer: S) -> Result<S::Ok, S::Error>
      where
    -     T: Serialize,
    +     T: ?Sized + Serialize,
          S: Serializer,
      {...}

0.11.0

07 Apr 23:27
0.11.0
1752b18
Compare
Choose a tag to compare
  • The definition of Bytes has changed from struct Bytes<'a>(&'a [u8]) to struct Bytes([u8]) which makes it work more like str, [u8], Path, CStr etc. This makes it possible to use Cow<Bytes> for example.

0.10.5

25 Feb 00:20
0.10.5
42eed32
Compare
Choose a tag to compare
  • Update documentation examples to 2018 edition

0.10.4

01 Apr 10:19
0.10.4
8d04a7f
Compare
Choose a tag to compare
  • Accept T: ?Sized in serde_bytes::serialize

0.10.3

17 Dec 19:38
0.10.3
391368e
Compare
Choose a tag to compare
  • Updates to documentation only.

0.10.2

08 Sep 15:12
0.10.2
5581b0b
Compare
Choose a tag to compare
  • Implement Deserialize for Bytes (#5, thanks @hcpl)