Skip to content

Releases: P3KI/bendy

v0.2.1

03 Sep 11:37
Compare
Choose a tag to compare
  • Add missing [FromBencode] implementation for [BTreeMap].
  • Introduce std as default enabled feature.
    • Disabling this feature makes bendy no_std compatible.
    • This currently requires that the target provides allocator support and
      also supports atomic_cas as bendy contains a default [ToBencode]
      implementation for Arc<T: ToBencode>.
  • Update minimal required rustc version to v1.36 (to use extern crate alloc
    inside tests and examples).

v0.2.0

28 Feb 15:29
Compare
Choose a tag to compare
  • Add new try_into_* utility methods on Object.
  • Introduce ...
    • FromBencode trait for simpler decoding.
    • a high level encoding Error type.
    • a high level decoding Error type.
    • ResultExt decoding trait to improve error handling.
  • Subscribed into edition 2018 and latest rustfmt version.

Breaking Changes

  • Remove Error from the public API.
  • Move Token from decoder into state_tracker submodule.
  • Rename ...
    • encoder submodule into encoding.
    • decoder submodule into decoding.
    • Encodable trait into ToBencode.
  • Changed signatures of all _or_err methods on Object.
  • Replaced all occurrences of Error inside the API with the new high level decoding
    Error and encoding Error.

v0.1.2

14 Aug 09:17
Compare
Choose a tag to compare
v0.1.2 Pre-release
Pre-release

Adds AsRef<[u8]> and From<&[u8]> for AsString if the content supports them.

v0.1.1

07 Aug 16:11
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

Adds missing trait derives for the AsString encoding wrapper.

This should allow to restore byte types encoded with the AsString helper even in places where they specific traits are required e.g. as key for a HashMap

v0.1.0

24 Jul 13:53
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Initial release