Skip to content

Releases: bluk/bt_bencode

v0.8.1

15 May 19:12
v0.8.1
ca60f09
Compare
Choose a tag to compare

Updated

  • Update serde dependency to be more precise to ensure minimal versions are
    correct.

v0.8.0

01 Jan 02:57
v0.8.0
f537440
Compare
Choose a tag to compare

Updated

  • Breaking change: Modify Value variants to use ByteString instead of
    serde_bytes::ByteBuf for byte string values. Removed the serde_bytes
    dependency.

Added

  • Add ByteString type as a specialized type for serialization and
    deserialization of bencoded strings.

v0.7.0

31 Jul 14:49
v0.7.0
1d99c9f
Compare
Choose a tag to compare

Added

  • Add Deserializer::byte_offset() to return the byte offset in the underlying source. It may be useful if there is trailing data.
  • Serialize and deserialize tuples and tuple structs.
  • Allow deserialization from a borrowed Value.
  • Set supported Rust version to 1.36.0. The MSRV is not guaranteed due to dependencies being free to bump their version.

Updated

  • In general, fewer allocations are made when parsing values.

  • Breaking change: Refactored the Read trait to allow borrowing against the original data.

    #[derive(Deserialize)]
    struct Info<'a> {
        name: Option<&'a str>,
        pieces: &'a [u8],
    }

    should work now when using from_slice.

  • Breaking change: Refactored the Error type.

    The Error::byte_offset() method can help hint where the error occurred at (usually only helpful for deserialization).

    Refactored to use Box to reduce the size of the return types. Rationale is
    influenced by Serde JSON issues/discussions where an allocation for an exceptional code path is acceptable.

v0.6.1

01 Apr 01:18
v0.6.1
303e79a
Compare
Choose a tag to compare

Updated

  • Fix wrong error returned when parsing an invalid list.
  • Add documentation to more items
  • Add #[must_use] to more functions

v0.6.0

21 Mar 16:03
v0.6.0
d043f6d
Compare
Choose a tag to compare

Added

  • Allow serialization when no_std.

    Adds Write trait and implementations.

    Thanks @bheesham .

v0.5.1

14 Mar 16:58
v0.5.1
6a78e4b
Compare
Choose a tag to compare
v0.5.1

v0.5.0

09 Mar 22:01
v0.5.0
99cc481
Compare
Choose a tag to compare
v0.5.0

v0.4.0

27 May 18:48
v0.4.0
544a6ba
Compare
Choose a tag to compare
v0.4.0

v0.3.0

11 Oct 03:00
v0.3.0
c511b2d
Compare
Choose a tag to compare
v0.3.0

v0.2.0

20 Feb 23:32
v0.2.0
da81bc7
Compare
Choose a tag to compare
v0.2.0