Skip to content

Releases: serde-rs/bytes

0.11.9

05 Feb 05:07
0.11.9
c3c8393

Choose a tag to compare

  • Documentation improvements

0.11.8

17 Dec 19:49
0.11.8
68fe3ab

Choose a tag to compare

  • Documentation improvements

0.11.7

03 Aug 14:07
0.11.7
29c9985

Choose a tag to compare

  • Add categories and keywords to crates.io metadata

0.11.6

30 Apr 21:51
0.11.6
e196cd2

Choose a tag to compare

  • Add rust-version entry to Cargo.toml to declare the oldest supported compiler version

0.11.5

11 Jun 03:21
0.11.5
7f2e508

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

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

Choose a tag to compare

  • Documentation improvement (#17, thanks @djc)

0.11.2

07 Aug 16:32
0.11.2
4856e26

Choose a tag to compare

0.11.1

07 Aug 16:31
0.11.1
4958df3

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

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.